Enable Scripts in PowerShell: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "By default you can not run scripts from PowerShell. To enable the running of scripts: <pre> PowerShell.exe -ExecutionPolicy Unrestricted </pre> [[Category : Windows PowerShe..."
 
No edit summary
 
Line 1: Line 1:
By default you can not run scripts from PowerShell.  To enable the running of scripts:
By default you can not run scripts from PowerShell.  To enable the running of scripts.  Open an Administrator Windows PowerShell.
 
<pre>
<pre>
PowerShell.exe -ExecutionPolicy Unrestricted
set-executionpolicy remotesigned
</pre>
 
or
<pre>
set-executionpolicy Unrestricted
</pre>
 
 
Set to default.
<pre>
set-executionpolicy restricted
</pre>
</pre>


[[Category : Windows PowerShell]]
[[Category : Windows PowerShell]]

Latest revision as of 03:51, 5 November 2019

By default you can not run scripts from PowerShell. To enable the running of scripts. Open an Administrator Windows PowerShell.

set-executionpolicy remotesigned

or

set-executionpolicy Unrestricted


Set to default.

set-executionpolicy restricted