Windows 10: Restore Default Windows Firewall Settings in Windows 10  

Page 1 of 2 12 LastLast
    Restore Default Windows Firewall Settings in Windows 10

    Restore Default Windows Firewall Settings in Windows 10

    How to Restore Default Windows Firewall Settings in Windows 10
    Published by Category: Security System
    15 Mar 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 18,966

    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 Windows Defender Security Center
    • Option Four: To Restore Default Windows Firewall Settings in PowerShell


    EXAMPLE: Windows Firewall settings
    Click image for larger version. 

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

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

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





    Restore Default Windows Firewall Settings in Windows 10 OPTION ONE Restore Default Windows Firewall 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:	28 
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:	37 
Size:	70.0 KB 
ID:	111373

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

    Name:  Windows_Firewall_Restore_defaults-3.jpg
Views: 41
Size:  51.9 KB

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





    Restore Default Windows Firewall Settings in Windows 10 OPTION TWO Restore Default Windows Firewall 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:	39 
Size:	39.4 KB 
ID:	111375

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





    Restore Default Windows Firewall Settings in Windows 10 OPTION THREE Restore Default Windows Firewall Settings in Windows 10
    To Restore Default Windows Firewall Settings in Windows Defender Security Center

    Note   Note
    This option is only available starting with Windows 10 build 15007.


    1. Open the Windows Defender Security Center, and click/tap on the Firewall & network protection icon

    2. Click/tap on the Restore firewalls to default link. (see screenshot below)

    Name:  Windows_Defender_Security_Center.jpg
Views: 47
Size:  63.4 KB

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

    Click image for larger version. 

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

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

    Name:  Windows_Firewall_Restore_defaults-3.jpg
Views: 41
Size:  51.9 KB

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





    Restore Default Windows Firewall Settings in Windows 10 OPTION FOUR Restore Default Windows Firewall 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:	31 
Size:	47.7 KB 
ID:	111376

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


    That's it,
    Shawn


  1.    23 Jan 2017 #1

    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:

    Name:  FWerror.PNG
Views: 192
Size:  5.7 KB

    I'd greatly appreciate any help on this, or on how to remove firewall altogether.

    Steve
      My System SpecsSystem Spec

  2. Brink's Avatar
    Posts : 18,966
    64-bit Windows 10 Pro build 15063
       23 Jan 2017 #2

    Hello Steve,

    Double check to see if you may have any group policies enabled that could be preventing your from resetting Windows Firewall.

    Group Policy Editor - Quickly View Enabled Policies in Windows - Windows 7 Help Forums
      My System SpecsSystem Spec

  3.    23 Jan 2017 #3

    Thanks, Brink, but I've already twice set all policies to not-configured and rebooted.
      My System SpecsSystem Spec

  4. Brink's Avatar
    Posts : 18,966
    64-bit Windows 10 Pro build 15063
       23 Jan 2017 #4

    Do you have any 3rd party Firewall or AV software installed that could have disabled Windows Firewall?
      My System SpecsSystem Spec

  5.    24 Jan 2017 #5

    I'd disabled AV. No other firewall. Cannot disable Windows firewall.
      My System SpecsSystem Spec

  6. Brink's Avatar
    Posts : 18,966
    64-bit Windows 10 Pro build 15063
       24 Jan 2017 #6

    Stopping and disabling the Windows Firewall service would be another effective way to disable it.

    Services - Start, Stop, and Disable in Windows 10
      My System SpecsSystem Spec

  7.    24 Jan 2017 #7

    Stopped firewall service, restarted, and firewall returned unchanged.
      My System SpecsSystem Spec

  8. Brink's Avatar
    Posts : 18,966
    64-bit Windows 10 Pro build 15063
       24 Jan 2017 #8

    You'll also need to disable it after stopping it.
      My System SpecsSystem Spec

  9.    24 Jan 2017 #9

    Thanks, Brink. Firewall's disabled. I get this, but none of the links work:

    Name:  FW.PNG
Views: 144
Size:  10.3 KB
      My System SpecsSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
How to Restore Default Apps for File Extension Type Associations in Windows 10 A default app is the program that Windows uses automatically when you open a particular file type or protocol. This tutorial will show you how to restore the...
How to Restore Default New Context Menu Items in Windows 10 The New context menu allows users to quickly create a new item in the current location. The default New context menu items include to create a new Library, Folder, Shortcut, Bitmap...
Does anyone have a solution to change the Win 10 default from turning off System Restore. This action gives me a problem when backing up an image. My restore points are gone when I recover the image due to being turned off. Any and all...
I've been finding computers on our network that have password protected sharing turned on suddenly. One of them just upgraded (automagically) to Windows 10. If that's going to happen, what are the "rules"? Another example, cross subnet File...
I have decided to go default with some of my Windows 10 settings. So does anyone know how to Restore the Default Windows 10 Start Menu?
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:58.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums