Powershell: Difference between revisions
From Leo's Notes
This page was last edited on 17 July 2013, at 22:08.
Created page with " == Troubleshooting == Error: "File cannot be loaded because the execution of scripts is disabled on this system" To allow untrusted script execution, open a powershell i..." |
No edit summary |
||
| Line 6: | Line 6: | ||
Error: "File cannot be loaded because the execution of scripts is disabled on this system" | Error: "File cannot be loaded because the execution of scripts is disabled on this system" | ||
To allow untrusted script execution, open a powershell instance as Administrator and run: | To allow untrusted script execution, open a powershell instance (same arch as what you're trying to run the script as. ie: 64bit/32bit) as Administrator and run: | ||
set-executionpolicy unrestricted | set-executionpolicy unrestricted | ||
You should now be able to see: | |||
get-executionpolicy | |||
Unrestricted | |||
[[Category:Windows]] | [[Category:Windows]] | ||
Revision as of 22:08, 17 July 2013
Troubleshooting
Error: "File cannot be loaded because the execution of scripts is disabled on this system"
To allow untrusted script execution, open a powershell instance (same arch as what you're trying to run the script as. ie: 64bit/32bit) as Administrator and run:
set-executionpolicy unrestricted
You should now be able to see:
get-executionpolicy Unrestricted