Powershell Script Policy

The following commands are to enable/disable script running in Windows PowerShell.


 * Using the Set-ExecutionPolicy command in conjunction with one of the following modifiers will set the policy. This must be run in an Administrative elevated PowerShell session.
 * Restricted - No scripts can be run. Windows PowerShell can be used only in interactive mode.
 * AllSigned - Only scripts signed by a trusted publisher can be run.
 * RemoteSigned - Downloaded scripts must be signed by a trusted publisher before they can be run.
 * Unrestricted - No restrictions; all Windows PowerShell scripts can be run.


 * Example command:
 * Set-ExecutionPolicy RemoteSigned

Use Get-ExecutionPolicy to find out which policy is currently set.

Return to Windows.

Return to Main Page.