The following error is thrown when running a PowerShell script within Active Roles Server or when using the Active Roles Management Shell cmdlets with the -Proxy switch:
Details: The 'ScriptExecution' policy encountered an error when running the script
This can be caused by the PowerShell execution level on the server where you are running PowerShell being too restrictive
There may be a problem with the installation of the Active Roles Management Shell.
The default Execution Policy in PowerShell is very secure and does not allow for any scripts to be run, from anywhere.
There are four possible settings for the Execution Policy configuration:
You can check the current setting using the following cmdlet:
You can change the execution policy setting using the following cmdlet: