Allow Execution of Local Scripts
If you want to run scripts and load configuration files with PowerCLI, you must set the execution policy of PowerShell to RemoteSigned.
For security reasons, 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 PowerShell, run
You can change the execution policy by using the Set-ExecutionPolicy cmdlet.
- Open the PowerShell console.