Privacy and Security Reset Microsoft Defender Firewall Settings to Default in Windows 11


Microsoft_Defender_Firewall_banner.webp

This tutorial will show you how to reset Microsoft Defender Firewall settings and rules back to default in Windows 10 and Windows 11.

Microsoft Defender Firewall in Windows helps safeguard your device by filtering network traffic and blocking unauthorized access. It reduces the risk of network security threats by restricting or allowing traffic based on various properties such as IP addresses, ports, or program paths.

If someone, or something, has made changes to your Windows Firewall settings that is causing things not to work properly you can reset the settings back to the way they were when you first got the computer. If you are joined to a work or school organization that has applied any policies to configure the firewall, those will be reapplied.

Reference:

You must be signed in as an administrator to reset Microsoft Defender Firewall settings and rules to default.




Contents

  • Option One: Reset Microsoft Defender Firewall to Default in Windows Security
  • Option Two: Reset Microsoft Defender Firewall to Default in Control Panel
  • Option Three: Reset Microsoft Defender Firewall to Default in Advanced Security
  • Option Four: Reset Microsoft Defender Firewall to Default in Command Prompt
  • Option Five: Reset Microsoft Defender Firewall to Default in PowerShell




Option One

Reset Microsoft Defender Firewall to Default in Windows Security


1 Open Windows Security.

2 Click/tap on Firewall & network protection. (see screenshot below)

Reset_Microsoft_Defender_Firewall_in_Windows_Security-1.webp

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

Reset_Microsoft_Defender_Firewall_in_Windows_Security-2.webp

4 Click/tap on Restore defaults. (see screenshot below)

Reset_Microsoft_Defender_Firewall_in_Windows_Security-3.webp

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

Reset_Microsoft_Defender_Firewall_in_Windows_Security-4.webp




Option Two

Reset Microsoft Defender Firewall to Default in Control Panel


1 Open the Control Panel (icons view), and click/tap on the Windows Defender Firewall icon.

2 Click/tap on the Restore defaults link on the left side. (see screenshot below)

Reset_Microsoft_Defender_Firewall_in_Control_Panel-1.webp

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

Reset_Microsoft_Defender_Firewall_in_Windows_Security-3.webp

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

Reset_Microsoft_Defender_Firewall_in_Windows_Security-4.webp




Option Three

Reset Microsoft Defender Firewall to Default in Advanced Security


1 Open Windows Defender Firewall with Advanced Security (wf.msc).

2 Perform either action below: (see screenshot below)
  • Select Windows Defender Firewall with Advanced Security on Local Computer in the left pane, and click/tap on Restore Default Policy in the right "Actions" pane.
  • Select Windows Defender Firewall with Advanced Security on Local Computer in the left pane, click/tap on Action on the toolbar, and click/tap Restore Default Policy.
  • Right click on Windows Defender Firewall with Advanced Security on Local Computer in the left pane, and click/tap Restore Default Policy.
Reset_Microsoft_Defender_Firewall_with_Advanced_Security-1.webp

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

Reset_Microsoft_Defender_Firewall_with_Advanced_Security-2.webp

4 Click/tap on OK when finished. (see screenshot below)

Reset_Microsoft_Defender_Firewall_with_Advanced_Security-3.webp




Option Four

Reset Microsoft Defender Firewall to Default in Command Prompt


1 Open Windows Terminal (Admin), and select Command Prompt.

2 Copy and paste the command below into Windows Terminal (Admin), and press Enter. (see screenshot below)

netsh advfirewall reset

3 When finished, you can close Windows Terminal (Admin) if you like.

Reset_Microsoft_Defender_Firewall_PowerShell.webp





Option Five

Reset Microsoft Defender Firewall to Default in PowerShell


1 Open Windows Terminal (Admin), and select Windows PowerShell.

2 Copy and paste the command below into Windows Terminal (Admin), and press Enter. (see screenshot below)

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

3 When finished, you can close Windows Terminal (Admin) if you like.

Reset_Microsoft_Defender_Firewall_command.webp



That's it,
Shawn Brink


 
Last edited:
Back
Top Bottom