Commands / Help and discovery

Get-ExecutionPolicy

See whether scripts are allowed to run

beginner Help and discovery

Get-ExecutionPolicy
 Get-ExecutionPolicy -List
Works on
Windows
PowerShell
5.1 and later
Reference
Microsoft Learn: Get-ExecutionPolicy

Tells you why a script might be blocked. -List shows every scope. MachinePolicy and UserPolicy come from Group Policy and win.

Read the execution policy guide before you change anything. Set-ExecutionPolicy is a separate, sharper tool.

Try this

Get-ExecutionPolicy -List

Related commands