liveBook · Manning

PowerShell execution policy

A PowerShell execution policy is a configuration setting that controls whether scripts may run and under what signing or trust conditions.

How 2 Manning books explain it

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.

Read how Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools explains PowerShell execution policy →

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.

Read how Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS explains PowerShell execution policy →

Also covered in

Related concepts

Questions about PowerShell execution policy

What is PowerShell execution policy?

A PowerShell execution policy is a configuration setting that controls whether scripts may run and under what signing or trust conditions.

Which Manning books explain PowerShell execution policy?

Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools and Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS.

What is the difference between PowerShell execution policy and security boundary?

A PowerShell execution policy is a configuration setting that controls whether scripts may run and under what signing or trust conditions. A security boundary is a separation between components or contexts across which access, trust, or information flow is controlled.

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.