Powershell error when running scripts – scripts disabled

If you are trying to run a Powershell script, you may find sometimes that you get this following error message: Cannot be loaded because the execution of scripts is disabled on this system. There is a very simple fix for this, all you have to do is ensure that you run your Powershell program as […]

Powershell Error When Running Scripts Scripts Disabled
If you are trying to run a Powershell script, you may find sometimes that you get this following error message:
Cannot be loaded because the execution of scripts is disabled on this system.
There is a very simple fix for this, all you have to do is ensure that you run your Powershell program as administrator to give it elevated rights and then run the command below:
set-executionpolicy remotesigned
Then re-run your Powershell script and you should find that it will now run correctly.
🛠️

Gear We Recommend

Testing configs is easier with a dedicated admin machine set up right. Here’s the kit we use.

Browse our Windows Admin Toolkit picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.