Get the current execution policy
suggest changeGetting the effective execution policy for the current session:
PS> Get-ExecutionPolicy
RemoteSigned
List the policy set at each scope. The effective policy is still the single value from Get-ExecutionPolicy with no parameters: Group Policy scopes win over Process, then CurrentUser, then LocalMachine.
PS> Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
List the execution policy for a specific scope, ex. process:
PS> Get-ExecutionPolicy -Scope Process
Undefined
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents