Published by


Brink's Avatar
Administrator

Posts: 16,471

Show Printable Version 


How to Restore Default Windows Firewall Settings in Windows 10

information   Information
Windows 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.

warning   Warning
Restoring 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.


CONTENTS:
  • 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
Click image for larger version. 

Name:	Windows_Firewall_Customize_Settings.jpg 
Views:	7 
Size:	92.0 KB 
ID:	111369
Click image for larger version. 

Name:	Windows_Firewall_Alllowed_Apps.jpg 
Views:	6 
Size:	112.1 KB 
ID:	111370
Click image for larger version. 

Name:	Windows_Firewall_with_Advanced_Security.jpg 
Views:	7 
Size:	216.0 KB 
ID:	111371





Windows Firewall - Restore Default Settings in Windows 10 OPTION ONE Windows Firewall - Restore Default Settings in Windows 10
To 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)

Click image for larger version. 

Name:	Windows_Firewall_Restore_defaults-1.jpg 
Views:	7 
Size:	117.6 KB 
ID:	111372

3. Click/tap on the Restore defaults button. (see screenshot below)

Click image for larger version. 

Name:	Windows_Firewall_Restore_defaults-2.png 
Views:	9 
Size:	70.0 KB 
ID:	111373

4. Click/tap on the Yes to confirm. (see screenshot below)

Click image for larger version. 

Name:	Windows_Firewall_Restore_defaults-3.png 
Views:	8 
Size:	48.3 KB 
ID:	111374

5. When finished, you can close the Windows Firewall control panel window if you like.





Windows Firewall - Restore Default Settings in Windows 10 OPTION TWO Windows Firewall - Restore Default Settings in Windows 10
To Restore Default Windows Firewall Settings in Command Prompt

Note   Note
To 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)

netsh advfirewall reset

Click image for larger version. 

Name:	netsh_advfirewall_reset_command.png 
Views:	8 
Size:	39.4 KB 
ID:	111375

3. When finished, you can close the elevated command prompt if you like.





Windows Firewall - Restore Default Settings in Windows 10 OPTION THREE Windows Firewall - Restore Default Settings in Windows 10
To 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)

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

Click image for larger version. 

Name:	Windows_Firewall_Restore_defaults-PowerShell.png 
Views:	8 
Size:	47.7 KB 
ID:	111376

3. When finished, you can close the elevated PowerShell if you like.


That's it,
Shawn