Software⏱️ 2 min read📅 2026-06-03

How to Fix: PowerShell says "execution of scripts is disabled on this system."

How to fix PowerShell script execution disabled error on Windows.

Quick Answer: Run the command in an elevated PowerShell prompt or add a registry key to enable non-interactive scripts for all users.

To resolve the issue of 'PowerShell says "execution of scripts is disabled on this system."' despite having an unrestricted execution policy, it's crucial to understand that the restriction might not be at the PowerShell level but rather at the Windows Registry level.

⚠️ Common Causes

  • Malware or viruses installed on the system.
  • A recent Windows update that changed the settings, possibly inadvertently disabling script execution.

🔧 Proven Troubleshooting Steps

Method 1: Checking Windows Registry

  1. Step 1: Open the Registry Editor on your system. This can be done by typing 'regedit' in the Run dialog box or searching for it in the Start menu.

Method 2: Using PowerShell to Set Policy

  1. Step 1: Verify that the execution policy is set to Unrestricted. You can do this by running the command 'Get-ExecutionPolicy' in PowerShell.

✨ Wrapping Up

If none of these steps resolve your issue, it might be worth reinstalling Windows or seeking further assistance from Microsoft support.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions