Friday, September 7, 2012

Powershell error : Execution of script is disabled on system

1 comment
Got below error while executing powershell script on Windows 7 x64 machine


It can be easily identified from error that i have to enable script execution.

To enable it, execute following command in powershell :

PS > Set-ExecutionPolicy -ExecutionPolicy UnRestried

After hitting Enter it will asked for confirmation. Press 'Y' and enter .

Now powershell script execution on system is enabled.