Enabling Powershell Scripts

Old No Comments on Enabling Powershell Scripts 49

When you start making your own PowerShell scripts you will need to enable remote signed scripts, or maybe even all signed for the PowerShell Execution Policy.

The execution policy is a security feature of PowerShell that specifies what scripts(if any) can be ran in PowerShell.  This feature is to protect users from accidentally running malicious scripts.

By default the execution policy is set to not allow any scripts to run and will give you an error when you try to run them:

File <ScriptName>.ps1 cannot be loaded because running scripts is disabled on this system.

What are the different execution policies?

  • Restricted – Scripts won’t run.
  • RemoteSigned – Scripts created locally will run, but those downloaded from the Internet will not (unless they are digitally signed by a trusted publisher).
  • AllSigned – Scripts will run only if they have been signed by a trusted publisher.
  • Unrestricted – Scripts will run regardless of where they have come from and whether they are signed.

How to change the execution policy

To change the PowerShell execution policy you need to run the  PowerShell terminal as Administrator  and run the command:

Set-ExecutionPolicy <policy name>

You can also see this video demonstration of how to change the execution policy.


Jake Gardner

Jake is an IT Consultant/Systems Engineer that works for a business that offers services to SMB clients. He runs his own business that delivers solutions geared towards online marketing and web design.

Related Articles

Leave a comment

Back to Top