Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Get-ExecutionPolicy

Get-ExecutionPolicy - Powershell 3.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 »


Short description
Gets the execution policies for the current session.

Get-ExecutionPolicy [[-Scope] <ExecutionPolicyScope>] [-List [<SwitchParameter>]] [<CommonParameters>]

The Get-ExecutionPolicy cmdlet gets the execution policies for the current session.

The execution policy is determined by execution policies that you set by using Set-ExecutionPolicy and the Group Policy
 settings for the Windows PowerShell execution policy. The default value is "Restricted."

Without parameters, Get-ExecutionPolicy gets the execution policy that is effective in the session. You can use the Lis
t parameter to get all execution policies that affect the session or the Scope parameter to get the execution policy fo
r a particular scope.

For more information, see about_Execution_Policies (