Menu & Search
“..ps1 cannot be loaded because running scripts is disabled on this system” – PowerShell

“..ps1 cannot be loaded because running scripts is disabled on this system” – PowerShell

When attempting to run a PowerShell script you may receive the following error:

ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at…

It’s a common error message this one… The problem is the default ExecutionPolicy won’t allow this action.


The Fix

Run PowerShell as Administrator.

Get-ExecutionPolicy will show the current Execution Policies configured.

Now to amend this, run Set-ExecutionPolicy.

All should work fine after the above!


Share

1 Comment

  1. 6 months ago

    Thnx PeterI used to do Unrestricted (https://www.itexperience.net/fix-file-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system/), but using RemoteSigned looks like a much more safe solution.
    Is it also possible to run Remote powershell scripts, that are NOT signed, by copy-pasting the source code into my own ps1 file?