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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 6528c7 in the box below so that we can be sure you are a human.