If you want to run scripts and load configuration files with vSphere PowerCLI, you must set the execution policy of Windows PowerShell to RemoteSigned.

For security reasons, Windows PowerShell supports an execution policy feature. It determines whether scripts are allowed to run and whether they must be digitally signed. By default, the execution policy is set to Restricted, which is the most secure policy. For more information about the execution policy and script digital signing in Windows PowerShell, run Get-Help About_Signing.

You can change the execution policy by using the Set-ExecutionPolicy cmdlet.


From your Windows taskbar, select Start > Programs > VMware > VMware vSphere PowerCLI.

The vSphere PowerCLI console window opens.


In the vSphere PowerCLI console window, run Set-ExecutionPolicy RemoteSigned.