1. Home
  2. PowerShell
  3. Configure PowerShell to Run Scripts

Configure PowerShell to Run Scripts

If you get the following error when trying to run cmdlets in PowerShell it means it has not been configured to run scripts

“Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.”

  • Click on the Start Menu and type in PowerShell -> Right Click on PowerShell and select Run As Administrator
  • Run the Following Command
  • Set-ExecutionPolicy RemoteSigned
  • Type in ‘Y‘ to accept the change

Restart PowerShell and cmdlets will now run ok. You only need to run this once on the computer and not every time you use PowerShell

Updated on November 19, 2022

Was this article helpful?

Related Articles

Leave a Comment