Cannot Be Loaded Because Running Scripts is Disabled on This System

When you attempt to run a PowerShell script you get the following response. “Script cannot be loaded because running scripts is disabled on this system”.

To allow execution of scripts type the following in PowerShell:

Set-ExecutionPolicy RemoteSigned

Or if you just want to allow the script to run this one time to test it then type the following in PowerShell:

powershell -ExecutionPolicy ByPass -File yourscript.ps1

Leave a Reply

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