Restore Default Windows Defender Firewall Settings in Windows 10  

Page 1 of 3 123 LastLast
    Restore Default Windows Defender Firewall Settings in Windows 10

    Restore Default Windows Defender Firewall Settings in Windows 10

    How to Restore Default Windows Defender Firewall Settings in Windows 10
    Published by Category: Security System
    11 May 2020
    Designer Media Ltd

    How to Restore Default Windows Defender Firewall Settings in Windows 10


    Starting with Windows 10 build 16193, Windows Firewall has been renamed to Windows Defender Firewall.

    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.

    See also: Automatically diagnose and fix problems with Windows Firewall | Windows Support

    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.


    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.

    This will not affect any configured group policies for Windows Firewall.



    Contents

    • Option One: To Restore Default Windows Defender Firewall Settings in Control Panel
    • Option Two: To Restore Default Windows Defender Firewall Settings in Command Prompt
    • Option Three: To Restore Default Windows Defender Firewall Settings in Windows Security
    • Option Four: To Restore Default Windows Defender Firewall Settings in PowerShell



    EXAMPLE: Windows Defender Firewall settings
    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_customize_settings.jpg
    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_alllowed_apps.jpg
    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_with_advanced_security.jpg





    OPTION ONE

    To Restore Default Windows Defender 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)

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_restore_defaults-1.jpg

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

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_restore_defaults-2.png

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

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_restore_defaults-3.jpg

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






    OPTION TWO

    To Restore Default Windows Defender Firewall Settings in Command Prompt


    To see more usage options for the Netsh AdvFirewall Firewall command, see: Netsh AdvFirewall Firewall Commands - Microsoft Docs


    1 Open an elevated command prompt.

    2 Copy and paste the netsh advfirewall reset command into the elevated command prompt, and press Enter. (see screenshots below)

    Restore Default Windows Defender Firewall Settings in Windows 10-netsh_advfirewall_reset_command.png

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






    OPTION THREE

    To Restore Default Windows Defender Firewall Settings in Windows Security


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

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

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_defender_security_center.jpg

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

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_restore_defaults-2.png

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

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_restore_defaults-3.jpg

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






    OPTION FOUR

    To Restore Default Windows Defender Firewall Settings in PowerShell


    1 Open an elevated PowerShell.

    2 Copy and paste the command below into the elevated PowerShell, and press Enter. (see screenshots below)

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

    Restore Default Windows Defender Firewall Settings in Windows 10-windows_firewall_restore_defaults-powershell.png

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


    That's it,
    Shawn






  1. Posts : 31
    windows 8.1
       #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:

    Restore Default Windows Defender Firewall Settings in Windows 10-fwerror.png

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

    Steve
      My Computer


  2. Posts : 70,007
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


  3. Posts : 31
    windows 8.1
       #3

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


  4. Posts : 70,007
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

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


  5. Posts : 31
    windows 8.1
       #5

    I'd disabled AV. No other firewall. Cannot disable Windows firewall.
      My Computer


  6. Posts : 70,007
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


  7. Posts : 31
    windows 8.1
       #7

    Stopped firewall service, restarted, and firewall returned unchanged.
      My Computer


  8. Posts : 70,007
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    You'll also need to disable it after stopping it.
      My Computers


  9. Posts : 31
    windows 8.1
       #9

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

    Restore Default Windows Defender Firewall Settings in Windows 10-fw.png
      My Computer


 

Tutorial Categories

Restore Default Windows Defender Firewall Settings in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
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 12:37.
Find Us




Windows 10 Forums