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