As I am normally on my development machine I want to be able to run any PowerShell scripts as I need. By default I cannot do this because the Execution Policy for PowerShell is set to Restricted By Default.
There are 4 policies:
- Restricted
- AllSigned
- RemoteSigned
- Unrestricted
To see the current policy of your machine use the following command:
Get-ExecutionPolicy
To set the policy so you can run your all your scripts use the following command.
Set-ExecutionPolicy Unrestricted
By switching to this policy you make your system less secure. Probably not recommended for production machines.
See the Following URL for more information: http://technet.microsoft.com/en-us/library/ee176961.aspx
0378177c-7e54-4ae0-afda-7125905e0202|0|.0