if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) $params.Scope = 'CurrentUser'
One provider stands as the gateway to the vast .NET ecosystem: . Without it, many of PowerShell’s most powerful features (like installing modules from the PowerShell Gallery) simply won't work. install-packageprovider -name nuget -force
Install-Module -Name Az -Force And then you see the error: if (-not ([Security