Powershell Script Cannot Be Loaded Because Running Scripts Is Disabled On This System

This error will show up when you go to run a powershell script in your PowerShell ISE or on the PowerShell terminal.

If you get an error similar to this:

Disabled Powershell Script Error
File C:\Users\jake\Documents\test.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordExcept
ion
+ FullyQualifiedErrorId : UnauthorizedAccess

To fix this powershell error you need to activate powershell scripts on your system.

Run the powershell terminal as administrator by right clicking on the powershell terminal shortcut and selecting run as administrator.

Then run the following command:

  • set-executionpolicy remotesigned

  • Then type “Y” for yes and press enter

allow powershell scripts to runNow you will be able to run PowerShell scripts in both your PowerShell ISE and in the PowerShell Terminal.

Now the message that running scripts is disabled on this system will not appear anymore.

Do you know what a cmdlet is? If not read this post entitled what is a cmdlet.

Related Posts:

Scripting a mapped network drive

Restart All Exchange Services With PowerShell Script

You might also like …

Post Comment

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