Windows PowerShell Blog : PowerShell’s Security Guiding Principles

Using the scope parameter, you can change the scripting levels for the current user only.

PowerShell V2 makes this reality much more transparent through a concept called “Execution Policy Scopes.” In V1, the scopes are as follows. Items on top, if defined, override items below them:

  1. Machine-Wide Group Policy
  2. Current-User Group Policy
  3. Machine-Wide ExecutionPolicy (stored in HKLM)

In V2, the scopes are as follows, with “Process“, ”CurrentUser”, and “LocalMachine” now surfaced as the –Scope parameter to Set-ExecutionPolicy

  1. Machine-Wide Group Policy
  2. Current-User Group Policy
  3. ExecutionPolicy parameter to PowerShell.exe
  4. PSExecutionContext environment variable
  5. Current-User ExecutionPolicy (stored in HKCU)
  6. Machine-Wide ExecutionPolicy (stored in HKLM)

Windows PowerShell Blog : PowerShell’s Security Guiding Principles

Comments

No Comments