PowerShell - Resolve "Cannot be loaded because the execution of scripts is disabled on this system"

by
Jeremy Canfield |
Updated: March 12 2020
| PowerShell articles
This error typically appears when the execution policy on the PC is set to Restricted. Use the Get-ExecutionPolicy cmdlet to view the current execution policy.
PS C:\Users\username> Get-ExecutionPolicy
Restricted
The Set-ExecutionPolicy cmdlet can be used to set the execution policy. There are 4 execution policies:
- Restricted
- Unrestricted
- AllSigned
- RemotedSigned
PS C:\Users\username> Set-ExecutionPolicy
Unrestricted
PS C:\Users\username> Get-ExecutionPolicy
Unrestricted
Did you find this article helpful?
If so, consider buying me a coffee over at