August 10th, 2013

PowerTip: Change PowerShell Script Execution Policy

Doctor Scripto
Scripter

Summary: Learn how a user can change the Windows PowerShell script execution policy.

Hey, Scripting Guy! Question How can I change the Windows PowerShell script execution policy as simply an ordinary user?

Hey, Scripting Guy! Answer Use the –Scope parameter with the Set-ExecutionPolicy cmdlet and specify CurrentUser (the –Force parameter hides prompts from the cmdlet):

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.