Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ExecutionPolicyScope 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 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.
public enum class ExecutionPolicyScope
public enum class ExecutionPolicyScope
enum ExecutionPolicyScope
public enum ExecutionPolicyScope
type ExecutionPolicyScope =
Public Enum ExecutionPolicyScope
- Inheritance
-
ExecutionPolicyScope
Fields
| Name | Value | Description |
|---|---|---|
| Process | 0 | |
| CurrentUser | 1 | |
| LocalMachine | 2 | |
| UserPolicy | 3 | |
| MachinePolicy | 4 |
