How to reset your Windows Firewall settings (4 methods)

tutorial
How to reset your Windows Firewall settings (4 methods)

After using the Windows Firewall for a long time, it might stop working as it should. Especially if you have modified its more advanced settings, or you have introduced many changes. It becomes difficult to pinpoint the root problem for your network connectivity issues. One thing that works is to restore the Windows Firewall to its default settings so that it deletes all the rules that were created, and you can start configuring it again from scratch. Here are four different methods to make this reset:

Advertisement

NOTE: This guide works only if you are using a user account with administrator permissions. It covers Windows 10, Windows 7, and Windows 8.1. For each method, we mention the Windows version in which it works. If you do not know the version of Windows that you have, read: What version of Windows do I have installed?. The native firewall is named Windows Defender Firewall in Windows 10 while in Windows 7 and Windows 8.1 it retains the old name of Windows Firewall. For this article, we use screenshots from Windows 10.

1. How to reset Windows Firewall to its default settings (all Windows versions)

First, you need to open the Windows Firewall. One way to do that is to open the Control Panel, go to System and Security, and click or tap Windows Defender Firewall.

Open Windows Defender Firewall in the Control Panel
Open Windows Defender Firewall in the Control Panel

In the Windows Defender Firewall window, click or tap the Restore Defaults link, on the left side of the window.

Restore defaults in Windows Defender Firewall
Restore defaults in Windows Defender Firewall

You are informed about what it means to restore the default settings for the Windows Firewall. To go ahead, click or tap Restore Defaults.

Restore defaults settings for Windows Defender Firewall
Restore defaults settings for Windows Defender Firewall

Windows tells you that it is going to delete all settings of Windows Defender Firewall that you have made since Windows was installed. Click or tap Yes to proceed.

Confirm that you want to delete all settings for Windows Defender Firewall
Confirm that you want to delete all settings for Windows Defender Firewall

You are returned to the Windows Defender Firewall window, and all the firewall rules are now reset to their initial values, as they were when you first installed Windows.

Advertisement

2. How to reset the Windows Defender Firewall to its default settings, with Windows Security (Windows 10 only)

In Windows 10, you can restore the Windows Defender Firewall to its default settings, from the Windows Security app. In the search box on the taskbar, enter the "firewall & network protection" and click or tap the search result with the same name.

Search and open Firewall & network protection
Search and open Firewall & network protection

This opens the Windows Security app, at its "Firewall & network protection" section with settings. On the bottom, you find the link for "Restore firewalls to default." Click or tap on it.

Link to Restore firewalls to default in Windows 10
Link to Restore firewalls to default in Windows 10

A new window is opened with an explanation of what this does, and how it is going to remove all Windows Firewall settings. Click or tap the Restore defaults button.

Restore defaults for the Windows Defender Firewall
Restore defaults for the Windows Defender Firewall

Windows 10 asks for your confirmation as the action cannot be reversed. Press Yes to complete the reset.

Confirm the Windows Defender Firewall reset
Confirm the Windows Defender Firewall reset

You are returned to the Windows Security app, and all the firewall rules are now reset to their initial values.

Advertisement

3. How to reset the Windows Firewall to its default settings from the Command Prompt (all Windows versions)

You can reset the Windows Defender Firewall to its default settings using the Command Prompt, also known as CMD. Open the Command Prompt as administrator, and run the following command: netsh advfirewall reset

Reset Windows Firewall from CMD (Command Prompt)
Reset Windows Firewall from CMD (Command Prompt)

Press Enter on your keyboard, and the Windows Firewall is reset immediately. You only receive a text message saying OK. 🙂 The same command can be run in PowerShell too.

4. How to reset the Windows Firewall to its defaults, using PowerShell (all Windows versions)

Open PowerShell as administrator, and run the following command: (New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()

Restore default settings for Windows Defender Firewall by using PowerShell
Restore default settings for Windows Defender Firewall by using PowerShell

Press Enter on your keyboard, and the Windows Defender Firewall is reset immediately, without any additional confirmation.

Did you solve your problems by resetting the Windows Firewall?

As you can see from this guide, it's easy to restore the Windows Defender Firewall to its default settings. Maybe you were infected with malware which changed the rules you have set up, or the settings were corrupted along the way while trying to configure the Windows Defender Firewall manually. Either way, applying this procedure makes the Windows Defender Firewall work again. We recommend that you start to set new rules immediately, because some of your apps may not work after removing the old rules. Let us know in a comment below if this solved your problems.

Discover: Security Apps Networking Settings System Tutorials Windows