Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Execution Policy

Direct answer

Execution policy is a PowerShell safety feature that controls conditions for loading configuration files and running scripts on Windows. It can be set at multiple scopes, with Group Policy scopes able to override local settings. Microsoft explicitly documents that execution policy is not a security boundary.

When to use this

Use this topic when a script is blocked, effective policy differs from the value you changed, downloaded-script signing requirements apply, or you need to distinguish policy behavior from actual Windows authorization/security controls.

First 30 seconds

1. Get-ExecutionPolicy -List — which scope sets it (MachinePolicy/UserPolicy win)?

2. Set: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser.

3. Downloaded file → Unblock-File.

4. GPO-defined → change the GPO.

5. Remember: it is a safety feature, not a security boundary.

Operational verification

policy scopes (MachinePolicy, UserPolicy, Process, CurrentUser, LocalMachine) → effective policy → script allowed or blocked

Evidence · next step

After policy resolution, validate code/source and test target authorization/state separately.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

Do not set Bypass machine-wide merely to make an error disappear. Do not describe execution policy as malware prevention or privilege enforcement. A user allowed to execute code can often run equivalent code in other ways, so real security must rely on access control, application control and other controls.

Platform / version applicability
Windows execution, automation and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows execution, automation and observability · Windows / Windows Server / PowerShell
Key commandGet-ExecutionPolicy -List
Scope / prerequisiteUse this topic when a script is blocked, effective policy differs from the value you changed, downloaded-script signing…
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Capture all scopes and the exact script path/origin. Reproduce with the intended host/user. If policy is the first failing step, correct the approved policy/signing/origin issue. Then continue to normal script dependency and target authorization checks.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Execution policy is not a security boundary and can be bypassed by a determined user with code-execution rights.
  • Effective policy comes from scope precedence, not simply the LocalMachine value.
  • MachinePolicy/UserPolicy set by Group Policy can override local Process/CurrentUser/LocalMachine settings.
  • RemoteSigned concerns scripts marked as coming from the Internet zone; origin/marking matters.
  • Changing execution policy does not grant filesystem, Registry, network or administrative permissions.
Key checks
  • $PSVersionTable — PowerShell edition and version
  • Get-Command <name> — which cmdlet/function/exe runs
  • Get-Help <cmdlet> -Full — syntax and parameters
  • Get-ExecutionPolicy -List — execution policy per scope
ReferenceWhat it is1 section · depth on demand

Core model

Execution policies help prevent accidental execution of untrusted scripts and define signature/origin expectations. The key troubleshooting concept is scope precedence: changing one scope may have no visible effect if a higher-precedence scope is defined.

ReferenceImportant terms & boundaries2 sections · depth on demand

PowerShell boundary

Use Get-ExecutionPolicy -List instead of only Get-ExecutionPolicy. If Group Policy is enforcing MachinePolicy or UserPolicy, local changes cannot override it. A script blocked under RemoteSigned may also require investigation of its source/zone mark or signature rather than weakening policy globally.

In depth

Execution policy controls whether scripts may run; it is a safety setting against accidental execution, not a security boundary.

PolicyEffect
RestrictedNo scripts (client default)
RemoteSignedLocal scripts run; downloaded scripts (Mark of the Web) must be signed (server default)
AllSignedAll scripts must be signed
BypassNothing blocked
Get-ExecutionPolicy -List
Set-ExecutionPolicy RemoteSigned -Scope LocalMachine
Unblock-File .\script.ps1

Real protection comes from App Control for Business/AppLocker (Constrained Language Mode) and logging (script block logging, transcription).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows execution, automation and observability current

Authoritative/upstream documentation reviewed for bounded claims in PowerShell → Execution Policy. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/powershell/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
powershell execution policyget-executionpolicy listremotesigned powershellpowershell policy scopes
Embedded reference data

Quick lookup tables

PowerShell → Execution Policy reference map

Fast lookup boundaries for PowerShell → Execution Policy.

ItemMeaningEvidence boundary
MachinePolicy/UserPolicyGroup Policy scopescan dominate local configuration
ProcessCurrent session scopelost when process ends
CurrentUserUser-level configured policynot machine-wide
LocalMachineComputer-level configured policyrequires appropriate rights to change
Effective policyResult after precedencenot an authorization/security boundary
Confirmation

Confirm action

Continue?