Create Set-ExecutionPolicy.md

This commit is contained in:
Eric Conrad
2019-05-04 12:34:58 -03:00
committed by GitHub
parent 7166a8f529
commit 5e3108288e

15
Set-ExecutionPolicy.md Normal file
View File

@ -0,0 +1,15 @@
## Set-ExecutionPolicy
If you see this error: `.\DeepBlue.ps1 : File .\DeepBlue.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.`
You must run Set-ExecutionPolicy as Administrator, here is an example (this will warn every time you run a ps1 script):
`Set-ExecutionPolicy RemoteSigned`
This command will bypass Set-Execution entirely: `Set-ExecutionPolicy Bypass`
See `get-help Set-ExecutionPolicy` for more options.
Please note that "Set-ExecutionPolicy is not a security control" (quoting [@Ben0xA](https://twitter.com/ben0xa))