Wednesday, November 16, 2011

Windows 2008 R2 Powershell script error

For security, Windows 2008 R2 won't run PowerShell scripts by default (Disabled). Thus we need to adjust the ExecutionPolicy to allow PowerShell scripts to run. The better method is to issue this instruction at the PowerShell command line:
 
set-ExecutionPolicy RemoteSigned