How to Restore Default Windows Firewall Settings in Windows 10
InformationWindows Firewall can help prevent hackers or malicious software from gaining access to your PC through the Internet or a network.
Over time of allowing apps through the firewall and setting rules, you may need or want to completely reset Windows Firewall to default. Restore defaults would include turning on Windows Firewall for all network profiles, reset notification settings to default, remove all added apps and features that you allowed and denied, and reset Windows Firewall with Advanced Security settings to default.
This tutorial will show you how to completely reset and restore Windows Firewall settings to default in Windows 10.
You must be signed in as an administrator to restore default Windows Firewall settings.
WarningRestoring default settings will remove all Windows Firewall settings that you have configured for all network locations since Windows was installed. This might cause some apps to stop working until allowed through the firewall again.
- Option One: To Restore Default Windows Firewall Settings in Control Panel
- Option Two: To Restore Default Windows Firewall Settings in Command Prompt
- Option Three: To Restore Default Windows Firewall Settings in PowerShell
EXAMPLE: Windows Firewall settings
OPTION ONETo Restore Default Windows Firewall Settings in Control Panel
1. Open the Control Panel (icons view), and click/tap on the Windows Firewall icon.
2. Click/tap on the Restore defaults link on the left side. (see screenshot below)
3. Click/tap on the Restore defaults button. (see screenshot below)
4. Click/tap on the Yes to confirm. (see screenshot below)
5. When finished, you can close the Windows Firewall control panel window if you like.
OPTION TWOTo Restore Default Windows Firewall Settings in Command Prompt
NoteTo see more usage options for the Netsh AdvFirewall Firewall command, see: Netsh AdvFirewall Firewall Commands - TechNet
1. Open an elevated command prompt.
2. Enter the command below into the elevated command prompt, and press Enter. (see screenshots below)
3. When finished, you can close the elevated command prompt if you like.
OPTION THREETo Restore Default Windows Firewall Settings in PowerShell
1. Open an elevated PowerShell.
2. Enter the command below into the elevated PowerShell, and press Enter. (see screenshots below)
3. When finished, you can close the elevated PowerShell if you like.
Tried all three restore options. (New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults() did not work in elevated PowerShell.
I've set all Group Policies to not-configured. After rebooting I still get message that Group Policy is preventing restoration:
I'd greatly appreciate any help on this, or on how to remove firewall altogether.