From 5e3108288e94d84335b8dd02a6e0ec1d37161913 Mon Sep 17 00:00:00 2001 From: Eric Conrad Date: Sat, 4 May 2019 12:34:58 -0300 Subject: [PATCH] Create Set-ExecutionPolicy.md --- Set-ExecutionPolicy.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Set-ExecutionPolicy.md diff --git a/Set-ExecutionPolicy.md b/Set-ExecutionPolicy.md new file mode 100644 index 0000000..70bea72 --- /dev/null +++ b/Set-ExecutionPolicy.md @@ -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))