Why can't I run Scripts in Powershell!!!!
In order to run scripts in Powershell you need to set the execution policy. It's really easy.
You can first check the execution policy with this cmdlet... --->> If you can't run scripts it is probably set to RESTRICTED. To set the execution policy use this cmdlet... --->>> It will then prompt you to select 'Yes' or 'No'. Select Yes. Here is a link regarding the different execution policies http://technet.microsoft.com/en-us/library/ee176961.aspx |
Get-Executionpolicy Set-ExecutionPolicy Remotesigned |