By Kevin Williams

Execution Policies

Execution policies determine which scripts can be run on the machine, and have different scopes / policy levels.


  • MachinePolicy
  • UserPolicy
  • Process
  • CurrentUser
  • LocalMachine


  • Restricted
  • AllSigned
  • RemoteSigned
  • Unrestricted


# List the policy for each scope
Get-ExecutionPolicy -List

# Change the policy for a given scope
Set-ExecutionPolicy -Scope <ScopeName> -ExecutionPolicy <PolicyName>


Unable to execute a script

If you can't execute a script because it is unsigned, you can bypass the execution policy for the current terminal process by running the following command:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Kevin Williams • 44 Articles

A full stack software engineer since 2018, specializing in Azure and .Net.

View Articles