Running Scripts is Disabled on This System on Windows 11

Fix this issue by running a couple of commands beforehand

Reading time icon 3 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

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

Key notes

  • Certain security features on your PC can prevent certain scripts from running properly.
  • Fix this issue by running a couple of commands to disable specific security features.
running scripts is disabled on this system windows 11

PowerShell is an automation engine that helps users in task automation. However, many reported Running scripts is disabled on this system on their Windows 11 PC.

This can be fixed by enabling scripts to run, but sometimes that’s not enough to fix the core issue that you’re having.

In today’s guide, we’re going to take a closer look at this issue and show you the best ways you can fix it.

Why is running scripts disabled on my PC?

  • This is a security policy enacted by PowerShell in order to protect your PC.
  • By default, all scripts are restricted from running in PowerShell.

How do I fix Running scripts is disabled on this system on Windows 11?

1. Bypass the Execution Policy

  1. You can update the command to get access to the script access via policy.
  2. Open the run dialogue by pressing Windows + R keys.
  3. Type Powershell in the textbox and simultaneously press Ctrl + Shift + Enter keys. This process will run PowerShell as an administrator.
    open powershell running scripts is disabled on this system powershell error
  4. Now you can type the following command to execute a specific PowerShell script:  powershell -ExecutionPolicy ByPass -File testscript.ps1ByPass Execution Policy running scripts is disabled on this system powershell error
  5. Finally, hit the Enter key and check if your system successfully runs the script.

This solution will bypass the Execution Policy to run the script on your system. After running this command, check if Running scripts is disabled on this system on Windows 11 message is still there.

2. Change the Execution Policy

  1. Simultaneously press the Windows + R combo to open the run dialogue box.
  2. Once the dialogue box opens on your screen, type Powershell and press Ctrl + Shift + Enter keys to open PowerShell with administrative access.open powershell running scripts is disabled on this system powershell error
  3. Based on your particular situation, Windows allows you to set the policy to four different modes. To get the List of Execution Policy, you can type the command: Get-ExecutionPolicy -List
  4. Press the Enter key and you will now see a list showing the Execution Policy status for all the User Groups.
  5. Check the status of LocalMachine under the scope column.
  6. If the execution policy is set to Restricted or Undefined, you need to set the Execution Policy to Unrestricted.
  7. Type the following command to change the status in the PowerShell window: Set-ExecutionPolicy RemoteSignedchange execution policy running scripts is disabled on this system powershell error
  8. Press the Enter key to execute the command and then Y to confirm the change.
  9. If the problem still persists, replace RemoteSigned with Unrestricted. 

This is a permanent solution, and it should help you fix Running scripts is disabled on this system on Windows 11 for good.

Note icon NOTE
The RemoteSigned Execution Policy restricts your system from running those scripts that are not signed by a trusted publisher. However, the restriction is removed if you choose Unrestricted.

As you can see this error can be easily fixed with our simple solutions.

In case the problem is still there our Execution of scripts is disabled on this system should be able to provide you with more solutions.

If you found our solutions helpful, do let us know in the comments section below which one of them worked for you.

More about the topics: PowerShell, Windows 11