Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ExecutionPolicy Enum

Definition

Namespace:
Microsoft.PowerShell
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Defines the different Execution Policies supported by the PSAuthorizationManager class.

public enum class ExecutionPolicy
public enum class ExecutionPolicy
enum ExecutionPolicy
public enum ExecutionPolicy
type ExecutionPolicy = 
Public Enum ExecutionPolicy
Inheritance
ExecutionPolicy

Fields

Name Value Description
Unrestricted 0
RemoteSigned 1
AllSigned 2
Default 3

Default - The most restrictive policy available.

Restricted 3
Bypass 4
Undefined 5

Applies to