Allow PowerShell Execution
By default PowerShell’s execution policy is very restrictive which is a good thing for security. If you are editing or running scripts on your machine you may want to relax it slightly. As I often forget to do this on new machines I’m making a note of the command in this post:
Open PowerShell prompt as Administrator, and then run:
1
set-executionpolicy remotesigned
Remotesigned means local scripts can be run but downloaded ones must be signed. You can remove all restriction via:
1
set-executionpolicy Unrestricted
To view the current setting on your machine use get* instead of set*:
1
get-executionpolicy
For more information see technet here:
https://technet.microsoft.com/en-us/library/ee176961.aspx
This post is licensed under CC BY 4.0 by the author.