Share via


ExecutionPolicyScope Enum

Definition

Defines the available configuration scopes for an execution policy. They are in the following priority, with successive elements overriding the items that precede them: LocalMachine -> CurrentUser -> Runspace.

C++
public enum class ExecutionPolicyScope
Inheritance
ExecutionPolicyScope

Fields

Name Value Description
Process 0
CurrentUser 1
LocalMachine 2
UserPolicy 3
MachinePolicy 4

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0