A quick note about PSExecutionPolicyPreference

April 6, 2018 in Trivia

Running powershell scripts on the system is typically restricted so the usual way to bypass it is to:

  • run powershell -ep <policy> and its variants
  • use Set-ExecutionPolicy <policy> after launching powershell.exe

There is also one more option – use an environment variable called PSExecutionPolicyPreference.

See screenshot:

Comments are closed.