Share this article

Improve this guide

Execution of scripts is disabled on this system [FIX]

3 min. read

Updated onOctober 4, 2023

updated onOctober 4, 2023

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

PowerShellis a great tool for Windows system administration created by Microsoft. You can run command lines to automate the operating system.

This is a new tool that comes with Windows 10 and has many functionalities. However, these features come with several issues.

Many users encountered the error message “runningof scripts is disabled on this system”.

Therefore, the PowerShellexecutionpolicy doesn’t allow running scripts. Also, the same error appears when trying to run a PowerShell script.

This is a major issue that makes thePowerShellunusable. Fortunately, there are some solutions available and today we will show you what to do if you encounter the “running of scripts is disabled on this system” error inPowerShell.

Can’t run scripts in PowerShell? Here’s the fix

Can’t run scripts in PowerShell? Here’s the fix

Change the PowerShell execution policy

By default, the PowerShellexecutionpolicy is set toRestricted. You can change that by setting policy toRemoteSigned.

So, change theexecutionpolicies withSet-ExecutionPolicycmdlet. It should be like this:

Also, you can use the following command:

You can bypass the command above by adding this script:

Learn everything there is to know about PowerShell from our comprehensive guide!

Conclusion

As you can see, by typing some commands you can fix the “running of scripts is disabled on this system” error inPowerShell.

It is worth mentioning thatPowerShellhas four differentexecutionpolicies:

Restricted– you can’t run scripts.AllSigned– you can run only the scripts signed by a trusted publisher.RemoteSigned– you can run downloaded scripts that a trusted publisher signed.Unrestricted– you can run allWindows PowerShellscripts.

Also, keep in mind that PowerShell has theRestrictedexecution policy set as default. The reason is to stop people from executing commands found on the Internet. As we all know, some scripts can damage your computer.

So, before you change the execution policy, check your script and search for additional information about it. This way, you will make sure everything is safe before running the command in PowerShell.

Did our solution help you? What scripts do you run inPowerShell? Do let us know in the comments section below!

RELATED ARTICLES YOU NEED TO CHECK OUT:

More about the topics:error,PowerShell

Milan Stanojevic

Windows Toubleshooting Expert

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Milan Stanojevic

Windows Toubleshooting Expert

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s specialized in Windows errors & software issues.