sodcalculator

10 Tech How-To

Reset Firewall Settings on Windows 11

Guide 10-51092 · Updated · Step by step

If Windows 11’s built-in firewall is blocking a program, showing errors, or behaving oddly, resetting it to its default state often fixes the problem. This article explains how to restore the Windows Defender Firewall to its original settings, what that actually does, and what to do if you need a more targeted fix.

Why Reset the Firewall?

The Windows Defender Firewall filters incoming and outgoing network traffic based on a set of rules. Over time, those rules can become corrupted, conflicting, or accidentally misconfigured—especially after installing third-party security software, editing registry keys, or importing rules from another PC. Symptoms include programs that suddenly can’t connect to the internet, network discovery failing, or error messages like “Windows cannot find the firewall.” A reset restores all firewall rules and settings to the state they were in when Windows 11 was first installed, which clears most rule-related problems.

What a Reset Does (and Doesn’t Do)

Resetting the firewall is a clean slate, not a full network reinstall. It:

  • Restores default firewall rules for all profiles (Domain, Private, Public).
  • Resets firewall settings such as notifications, allowed apps, and logging.
  • Re-enables the firewall if it was turned off.
  • Does not affect your network adapter settings, IP address, or DNS.
  • Does not uninstall third-party security software, but it may stop their rules from working until they re-add them.

After a reset, you’ll likely need to re-allow any apps that you previously approved manually (like a game server or a VPN client). Windows will prompt you again when those apps try to listen on the network.

How to Reset via Windows Security (GUI)

The easiest method for most users is through the Windows Security app.

  1. Open the Start menu, type Windows Security, and press Enter.
  2. Select Firewall & network protection from the left sidebar.
  3. Click Restore firewalls to default (it’s near the bottom of the page, under the “Settings” section).
  4. Click Restore defaults in the confirmation dialog, then confirm again if prompted.

That’s it. The firewall will immediately revert to its default configuration. You don’t need to restart your PC, though it doesn’t hurt to do so if you’re also troubleshooting other network issues.

How to Reset via Command Prompt or PowerShell

If you prefer the command line, or if the GUI method fails, you can use an elevated command prompt.

  1. Press Win + X and select Terminal (Admin) or Command Prompt (Admin).
  2. Type the following command and press Enter:
netsh advfirewall reset

This command does exactly the same thing as the GUI reset. You’ll see no output on success. If you get an error, make sure you’re running the command as administrator.

For PowerShell, the equivalent is:

Set-NetFirewallProfile -DefaultInboundAction Allow -DefaultOutboundAction Allow

That command is not a full reset—it only changes the default inbound/outbound actions. The netsh advfirewall reset command is the one that truly restores all rules and settings.

When You Shouldn’t Reset

A reset is a blunt instrument. If you only have one specific app that’s blocked, resetting the entire firewall is overkill and will undo any custom rules you’ve carefully set up. In that case, try these first:

  • Check if the app is listed under Allowed apps in Windows Security → Firewall & network protection → Allow an app through firewall.
  • Look for a rule that’s explicitly blocking the program (search for the app’s name in the “Inbound Rules” or “Outbound Rules” list in Windows Defender Firewall with Advanced Security).
  • If the app worked before, try temporarily turning off the firewall (not recommended for long) to see if the firewall is the culprit.

If you’ve recently installed a third-party antivirus or firewall, uninstall it first—its leftover drivers can interfere with Windows Firewall even after a reset.

Common Problems After a Reset

After resetting, some users notice that file sharing stops working, or that certain apps can’t connect. That’s expected because the default rules for those features are often set to block. Re-enable them by going to Allowed apps and checking the boxes for the features you need, like “File and Printer Sharing” or “Windows Management Instrumentation (WMI).”

Another common issue is that the firewall reset doesn’t fix the problem because the real cause is a third-party security suite that’s still running. Always check that any other security software is completely disabled or uninstalled before you assume the Windows Firewall is at fault.

If you’re getting an error when trying to reset, like “The requested operation requires elevation,” you’re not running the command as administrator. Right-click the Start button and choose “Terminal (Admin)” to get elevated privileges.

Alternatives to a Full Reset

If you only need to fix one rule, you can delete or disable it manually in the Windows Defender Firewall with Advanced Security console. To open it, press Win + R, type wf.msc, and press Enter. From there, you can browse Inbound Rules and Outbound Rules, right-click any rule, and disable it. This is more surgical and preserves all your other settings.

Another option is to export your firewall rules before resetting so you can re-import them later. In the same console, right-click “Windows Defender Firewall with Advanced Security” and choose “Export Policy.” A reset will wipe those rules, but you can import the policy file back afterward if needed.

Frequently Asked Questions

Will resetting the firewall disconnect my internet?

No. The firewall reset only changes firewall rules, not your network adapter settings. Your IP address, DNS, and connection type stay the same. You might briefly lose network connectivity if the reset triggers a service restart, but it usually reconnects automatically.

Do I need to restart my PC after resetting?

Not strictly. The change takes effect immediately. A restart is only useful if you’re also troubleshooting other network issues or if a program still won’t work after the reset.

Will resetting the firewall remove my third-party antivirus?

No. It only affects Windows Defender Firewall rules. Your third-party antivirus will remain installed, but its firewall rules (if any) will be removed. The antivirus may re-add them on its next update or when you restart it.

Can I undo a firewall reset?

There’s no built-in undo button. If you exported your firewall policy before resetting (via wf.msc), you can import it back. Otherwise, you’ll have to manually recreate any custom rules you had.

Why does the firewall keep turning off by itself?

This is often caused by third-party security software that disables the Windows Firewall to avoid conflicts. Check the settings of any installed antivirus or firewall suite. Malware can also disable the firewall, so run a full scan if the problem persists.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →