Powershell error when running scripts – scripts disabled

powershell
powershell

Estimated reading time: 1 minutes

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.

Share this content:

Click to rate this post!
[Total: 0 Average: 0]
Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

Leave a Reply

Your email address will not be published. Required fields are marked *