If you want to run scripts and load configuration files with 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.


Open the Windows PowerShell console.


Run Set-ExecutionPolicy RemoteSigned.