Skip to content
Follow
Windows

How to Change PowerShell Execution Policies in Windows 11

Richard
Written by
Richard
Feb 15, 2026 Updated Jun 19, 2026 5 min read
How to Change PowerShell Execution Policies in Windows 11
How to Change PowerShell Execution Policies in Windows 11

Want to control how PowerShell runs scripts on your Windows 11 computer? This guide will walk you through what execution policies are and how to change them.

⚡ Quick Answer

Open PowerShell as administrator and use the `Set-ExecutionPolicy` command. Specify the policy name (e.g., RemoteSigned) and the scope (e.g., LocalMachine or CurrentUser). Alternatively, navigate to Settings > Privacy & security > For developers to toggle policies for your user.

What Are PowerShell Execution Policies?

PowerShell execution policies are like safety rules for your Windows 11 computer that decide if it’s okay to run scripts, which are small programs, using PowerShell.

You can set these rules for:

  • Your whole computer (all users)
  • Just your user account
  • Only the current PowerShell window you’re using

Note: Execution policies aren’t foolproof security locks. Someone can still run commands by typing them manually. However, these policies help stop accidental or unsafe scripts from running.

Types of Execution Policies

Windows 11 offers several PowerShell execution policies, each acting as a different safety setting to control whether scripts can run.

  • AllSigned — Only runs scripts signed by a trusted publisher. You’ll get asked if a script from a new source is allowed. This helps avoid running unsigned or unknown scripts.
  • Bypass — No restrictions or warnings. Used when PowerShell runs inside another app that handles security.
  • Default — No restrictions or warnings. Similar to Bypass for normal use.
  • RemoteSigned — Default for Windows Server computers. Scripts you download from the internet must be signed by a trusted publisher. Scripts you write on your PC don’t need to be signed.
  • Restricted — Default for Windows client computers (like your PC). Does not allow any scripts to run. Only individual commands are allowed.
  • Undefined — No policy is set. This usually means Restricted for clients.
  • Unrestricted — Runs all scripts, including unsigned ones. Warns you before running scripts downloaded from outside your local network. Risky if you run scripts from unknown sources.

Where Can You Set These Policies?

You can set policies in these places:

  • MachinePolicy: Set by system administrators for all users on your PC.
  • UserPolicy: Set for your user account by system administrators.
  • Process: Only affects the current PowerShell window (temporary).
  • CurrentUser: Affects only your user account.
  • LocalMachine: Affects all users on your PC.

Check Your Current Execution Policies

Before you make any changes, it’s a good idea to check your current execution policies. Here’s how:

PowerShell
Get-ExecutionPolicy -List

To run the above command, you’ll need to open PowerShell as an administrator. Here’s a quick guide:

How to Open PowerShell in Windows 11

Change Execution Policy Using Windows Settings (Easy Way)

Changing your PowerShell execution policy in Windows 11 is simple using the Settings app, letting you adjust the rules without needing to type any commands.

Why use this method? It’s an accessible way to change policies without needing to type commands.

What happens when done? Your PowerShell policies will update right away.

  1. Open Settings by clicking the Start menu and selecting Settings. Or press Windows key + I.
  2. Click Privacy & security on the left menu.
  3. On the right, find and click For developers.
  4. Scroll down and find the PowerShell section. Click it to expand.
  5. Toggle the switch to On to enable RemoteSigned and Restricted policies for your user.
  6. Toggle it back to Off to disable these policies.
  7. Close the Settings app.
Windows 11 Privacy & Security Settings
Windows Privacy and security button in Settings

Windows 11 For Developers Settings
Windows for developer tile in the settings app

Windows 11 PowerShell Settings Toggle
Windows PowerShell tile in settings app

Turn On PowerShell Execution Policies
Windows turn on powershell execution policies remote scripts

Change Execution Policy Using PowerShell (Advanced)

You can change your PowerShell execution policy in Windows 11 using PowerShell commands, which gives you more control and lets you set rules for all users on your computer.

Why use this method? It offers broader options and allows you to set policies for all users.

What happens when done? Your chosen policy takes effect immediately.

First, open PowerShell as an administrator:

How to Open PowerShell as Administrator

Then, type one of the following commands and press Enter to set your desired policy. Remember to replace PolicyName with one of these options: AllSigned, Bypass, Default, RemoteSigned, Restricted, Undefined, or Unrestricted.

PowerShell
Set-ExecutionPolicy PolicyName -Scope CurrentUser -Force

Or:

PowerShell
Set-ExecutionPolicy PolicyName -Scope LocalMachine -Force

⚠️ Admin Required: Using LocalMachine scope requires administrator privileges.

For example, to set the RemoteSigned policy for your user only:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

Change Execution Policy Using the Registry Editor (For Experts)

For advanced users, changing the PowerShell execution policy in Windows 11 can be done by editing the Registry Editor, though it requires caution as it affects system settings.

Why use this method? It’s an alternative way to change policies if PowerShell commands aren’t working for you.

What happens when done? Changes will take effect after you restart your computer.

  1. Open the Registry Editor by typing regedit in the Start menu and pressing Enter.
  2. Navigate to this path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
  3. If you don’t see the Microsoft.PowerShell folder, right-click on ShellIds. Choose New > Key. Name it Microsoft.PowerShell.
  4. Click on the Microsoft.PowerShell folder. Right-click on the right side and choose New > String Value.
  5. Name the new value ExecutionPolicy.
  6. Double-click ExecutionPolicy and enter one of the policy names as the value:
    • Restricted
    • AllSigned
    • RemoteSigned
    • Unrestricted
    • Bypass
  7. Click OK and close the Registry Editor.
  8. Restart your computer for the changes to take effect.

⚠️ Admin Required: Editing the registry requires administrator privileges.

Change PowerShell Execution Policy via Registry Editor
Windows change powershell execution policies via registry

Set ExecutionPolicy value data in Registry Editor
Windows change powershell execution policies via registry value data

Summary

PowerShell execution policies in Windows 11 are safety rules that control when scripts can run, helping to protect your computer from unwanted programs.
  • PowerShell execution policies help control when scripts can run on your computer.
  • There are several policy options. You can choose from very strict (Restricted) to very open (Bypass).
  • You can change policies using the Windows Settings app, PowerShell commands, or the Registry Editor.
  • Always be careful when running scripts from unknown sources. This keeps your PC safe.
  • For more detailed info, visit the official Microsoft page: Microsoft PowerShell Execution Policies

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Change PowerShell Execution Policies in Windows 11
Windows How to Change PowerShell Execution Policies in Windows 11
How to Enable or Disable Windows Ready Print in Windows 11
Windows How to Enable or Disable Windows Ready Print in Windows 11
How to Check Wi-Fi Network Signal Strength in Windows 11
Windows How to Check Wi-Fi Network Signal Strength in Windows 11
How to Restore Default Settings of Library in Windows 11
Windows How to Restore Default Settings of Library in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

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