Sunday, October 20, 2019

How to Reset Windows Defender Firewall ?

Windows Defender Firewall not remembering allowed apps or not allowing to delete uninstalled apps


Why won't these apps stick in the allowed apps, and how do I fix it?

Simply Press win + x keys select Powershell (admin) from the options , copy the below cmd and right click anywhere in the PS window the cmd will append to the prompt , press enter.

 (New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()

Here are also four different methods to make this reset:

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.

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.

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.


No comments:

Post a Comment