To ensure a plugin will work as expected, users can preview the command execution and test it prior to deployment.
- Open PowerShell as an administrator. Right-click PowerShell and click Run as administrator.
- Type Get-ExecutionPolicy and press Enter to display the current script execution policy. The default value is Restricted which means PowerShell will not load any configuration files or run any scripts.
- Change the script execution policy to a value consistent with your security requirements. This will most commonly be Unrestricted. To change the PowerShell execution policy to Unrestricted type Set-ExecutionPolicy Unrestricted and press Enter.
- To verify the execution policy setting, type Get-ExecutionPolicy and verify the setting you want.
More information on PowerShell execution policies can be obtained by typing Help Get-Execution Policy or Help Set-ExecutionPolicy.