Monday, May 7, 2018

PowerShell: Enable execution of PS scripts of local machine




PowerShell: Enable execution of PS scripts of local machine


Open command window with Run As Administrator

Type powershell and press Enter.

Get-ExecutionPolicy -List
Set-ExecutionPolicy Bypass
Get-ExecutionPolicy -List  (you will see LocalMachine is now Bypass)

exit


(There is a scope parameter to specify other than LocalMachine.)

No comments:

Post a Comment