MVP Systems Software  
email us now

Setting The PowerShell Execution Policy

Expand / Collapse
 

Setting The PowerShell Execution Policy


To change the PowerShell Execution Policy you can execute the following from within the PowerShell command window:

Set-ExecutionPolicy Unrestricted

Or you can change the Execution Policy via the registry by navigating to the following:

HKLM\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell



Then locate string value ExecutionPolicy and add the value from the list below:

Restricted
AllSigned
RemoteSigned
Unrestricted

For example if you want to set your PowerShell execution policy for RemoteSigned add the following:

HKLM\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
"ExecutionPolicy"="RemoteSigned"

Here you will find a list of the available PowerShell execution policies with a brief description of each:

AllSigned
All scripts as well as configuration files must be signed by a trusted publisher. This includes script on the local as well as remote machines.

Default
Uses the default Restricted policy.

RemoteSigned
All scripts as well as configuration files downloaded via the Internet must be signed by a trusted publisher.

Restricted
As mentioned this is the PowerShell default and will not allow you to execute scripts or load configuration files.

Unrestricted
This allows you to execute all scripts as well as load configuration files however if you download a script from the internet you are prompted to approve it before it can execute.


Rate this Article:

Add Your Comments


Name: *
Email Address:
Web Address:
   
  
 
 
   
Verification Code:
*
 

Details
Last Modified:Tuesday, July 28, 2009

Last Modified By: DanielS

Type: HOWTO

Level: Novice

Rated 4 stars based on 4 votes.

Article has been viewed 4,082 times.

Options