Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Set-ExecutionPolicy

Set-ExecutionPolicy - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Set-ExecutionPolicy

Short description
Changes the user preference for the Windows PowerShell execution policy.

Syntax
Set-ExecutionPolicy [-ExecutionPolicy] {Unrestricted | RemoteSigned | AllSigned | Restricted | Default | Bypass | U
ndefined} [[-Scope] {Process | CurrentUser | LocalMachine | UserPolicy | MachinePolicy}] [-Force] [-Confirm] [-What
If] [<CommonParameters>]

Description
The Set-ExecutionPolicy changes the user preference for the Windows PowerShell execution policy. 

To run this command on Windows Vista, Windows Server 2008, and later versions of Windows, you must start Windows Po
werShell with the "Run as administrator" option, even if you are a member of the Administrators group on the comput
er.

The execution policy is part of the security strategy of Windows PowerShell. It determines whether you can load con
figuration files (including your Windows PowerShell profile) and run scripts, and it determines which scripts, if a
ny, must be digitally signed before they will run.

For more information, see about_Execution_Policies.