Windows

5 Ways to Restore Firewall Settings on Windows 11

Learn five practical ways to reset Windows 11 Firewall settings, including built-in reset options, Control Panel methods, PowerShell commands, and when to use each one.

Andrew Miller
Andrew Miller
Technology Writer  •  Sep 19, 2026  •  4 min read

If Windows 11 Firewall has been changed too many times, is blocking the wrong apps, or is behaving unpredictably, resetting it can restore the default protection rules and clear out custom changes. There are several ways to do this, from simple graphical tools to command-line methods.

This guide shows five practical ways to reset Firewall settings on Windows 11, along with when each method makes sense and what to watch out for before you begin.

5 Ways to Restore Firewall Settings on Windows 11
Warning Resetting the firewall removes custom rules you may have added for games, apps, remote access, file sharing, or other network tools. If you rely on specific exceptions, make a note of them before you reset.

1. Reset Firewall Settings from Windows Security

For most users, the easiest option is the built-in reset inside Windows Security. This returns the firewall configuration to its default state without needing command-line tools.

  1. Open Start and search for Windows Security.
  2. Select Windows Security from the results.
  3. Choose Firewall & network protection.
  4. Scroll down and select Restore firewalls to default.
  5. Confirm the action when Windows asks for permission.
Key Fact This method resets firewall rules to the default Windows 11 configuration and removes custom allow/block entries.

2. Use Control Panel to Restore Defaults

Windows 11 still includes the classic Control Panel firewall page, and it offers a direct restore option. This is useful if you prefer the older interface or are already working in Control Panel for other network settings.

  1. Open Control Panel.
  2. Select System and Security.
  3. Open Windows Defender Firewall.
  4. In the left pane, click Restore defaults.
  5. Select Restore defaults again to confirm.
Note The exact labels may vary slightly depending on your Windows 11 version and installed updates.

3. Reset the Firewall with Command Prompt

If the Windows interface is not opening correctly, Command Prompt can reset the firewall quickly. This is a good option when you need a direct fix or you are working on a system where the graphical tools are limited.

  1. Right-click the Start button and choose Terminal (Admin) or Command Prompt (Admin).
  2. If Windows Terminal opens, make sure you are in an elevated session.
  3. Type the following command: netsh advfirewall reset
  4. Press Enter.
  5. Wait for the message confirming the reset.
Quick Tip If you are troubleshooting a network problem, this command is often a fast way to undo a problematic firewall rule set before moving on to deeper diagnosis.

4. Reset Firewall Rules with PowerShell

PowerShell can also return the firewall to default behavior. This is useful if you are already using PowerShell for system maintenance or want a method that works well in scripts and admin workflows.

  1. Open Windows Terminal as Administrator or launch PowerShell with elevated rights.
  2. Enter the command: (New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()
  3. Press Enter.
  4. Close the window once the command completes.
Why It Matters PowerShell methods are helpful when the firewall settings are partially broken or when you want a repeatable command you can use on more than one PC.

5. Reinstall or Reapply Firewall Policy Through Group Policy or Security Software

On some PCs, especially work-managed systems, the Windows firewall may be controlled by Group Policy or third-party security software. In those cases, a normal reset may not stick because another tool restores the old rules.

Warning Do not disable firewall protection for long periods just to test a fix. If you need to turn off a third-party firewall temporarily, reconnect it as soon as you finish troubleshooting.

What to Do After Resetting the Firewall

After a reset, check whether the issue you were troubleshooting is gone. If not, the problem may be caused by something other than the firewall, such as a router setting, DNS issue, broken network adapter driver, or application-specific network permission.

Which Reset Method Should You Use?

For most people, Windows Security or Control Panel is the simplest choice. Use Command Prompt or PowerShell if the interface is unavailable or you want a faster admin-level reset. If a third-party firewall or group policy is controlling the system, you may need to change that tool instead of relying only on Windows Firewall settings.

Best For Windows 11 users who need to undo custom firewall rules, fix app connectivity problems, or return the firewall to a clean default state.
Topics

More from Windows

View all →
How to Fix DISM Error 0x800f0915 in Windows
Windows

How to Fix DISM Error 0x800f0915 in Windows

How to Fix Command Prompt When You Can’t Run It as Administrator
Windows

How to Fix Command Prompt When You Can’t Run It as Administrator

5 Ways to Fix HP Support Assistant When It Won’t Install
Windows

5 Ways to Fix HP Support Assistant When It Won’t Install

Why USB Devices Show Up as Unknown in Windows 11
Windows

Why USB Devices Show Up as Unknown in Windows 11

How to Fix the Windows Fast Startup Error 0xc00000d4
Windows

How to Fix the Windows Fast Startup Error 0xc00000d4

How to Fix a Volume Bar That Keeps Appearing in Windows
Windows

How to Fix a Volume Bar That Keeps Appearing in Windows