Home > Code > Set PowerShell ExecutionPolicy

Set PowerShell ExecutionPolicy

When trying to run a PowerShell script you may get the following error:

“scriptname.ps1 cannot be loaded because the execution of scripts is disabled on this system”

You need to do the following to set the executionPolicy.

1. Run Powershell as Administrator
2. get-exeuctionPolicy
3. set-executionPolicy RemoteSigned
4. Enter Y
5. Check by running get-exeuctionPolicy
 

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Categories: Code Tags:
  1. No comments yet.
  1. No trackbacks yet.