PowerShell execution policy
A PowerShell execution policy is a configuration setting that controls whether scripts may run and under what signing or trust conditions.
Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
A PowerShell execution policy is a control that restricts whether PowerShell scripts are permitted to run.
- How it is used
- Uses execution policy to control routine script execution on desktops and management servers.
- How deep it goes
- Explains policy values, scope precedence, inspection, modification, and limitations, but defers detailed script-signing mechanics.
- Examples
- Demonstrates Get-ExecutionPolicy, Get-ExecutionPolicy -List, a blocked test.ps1 file, and Set-ExecutionPolicy RemoteSigned.
- What you can do after
- Diagnose blocked scripts, inspect scope settings, and configure an appropriate execution policy for a managed environment.
Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS
An execution policy is a machine-wide PowerShell setting that controls whether and under what conditions scripts can run.
- How it is used
- Controls whether PowerShell scripts can execute while allowing interactive commands under restrictive settings.
- How deep it goes
- Defines policy effects and three configuration paths, but does not detail all policy levels or signing behavior.
- Examples
- Uses Get-ExecutionPolicy, Set-ExecutionPolicy, PowerShell.exe -ExecutionPolicy, a blocked script error, and Group Policy settings.
- What you can do after
- Operate/configure it by inspecting policy and selecting local, Group Policy, or command-line settings.
Related concepts
- Set-ExecutionPolicyused by · Set-ExecutionPolicy is a PowerShell cmdlet that changes the execution policy for a specified scope.
- shell scriptconfigures · Bash is a Unix command-line shell and scripting language for executing commands interactively and through scripts.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

