VMWareWindows

PowerCLI cannot be loaded because the execution of scripts is disabled on this system

Posted

Open Windows PowerShell as admin and run the following:


PS C:\> Get-ExecutionPolicy
Restricted
PS C:\> Set-ExecutionPolicy RemoteSigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
PS C:\> Get-ExecutionPolicy
RemoteSigned