Powershell: Difference between revisions
From Leo's Notes
This page was last edited on 17 July 2013, at 22:09.
No edit summary |
|||
| Line 7: | Line 7: | ||
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: | 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 | PS> set-executionpolicy unrestricted | ||
You should now be able to see: | You should now be able to see: | ||
get-executionpolicy | PS> get-executionpolicy | ||
Unrestricted | Unrestricted | ||
[[Category:Windows]] | [[Category:Windows]] | ||
Revision as of 22:09, 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:
PS> set-executionpolicy unrestricted
You should now be able to see:
PS> get-executionpolicy Unrestricted