Powershell error when running scripts – scripts disabled

TGH Profile Image 512x512

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.   
please see "get-help about-signing".

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.