Restore Windows Firewall Defaults

This article is for those looking for a detailed and clear guide on how to restore Windows Firewall defaults.
This guide will cover several ways to restore the default Windows Firewall settings.
We go into the system under an account with administrator rights.
Open Server Manager, click on the “Tools” button in the upper right corner of the screen, and select “Windows Defender Firewall with Advanced Security”.
You can now export the current settings from Windows Firewall and, if necessary, return to them after restoring the default settings.
Right-click on “Windows Firewall with Advanced Security on Local Computer” and select “Export Policy”.
Assign a name and save the file with Windows Firewall settings.
NOTEIn this manual, the settings file will be saved in the “Documents” folder.
Click on the “Save” button.
Windows Firewall settings exported successfully.
Click on the “OK” button.
Now you can restore the default settings in Windows Firewall.
In the “Actions” section, select “Restore Default Policy”.
Next, you need to confirm the restoration of the default settings.
Click on the “Yes” button.
Windows Firewall defaults have been restored successfully.
In addition, you can restore the default settings in Windows Firewall using the command line.
Press “Start”, specify “cmd” in the search bar, and select “Command Prompt”.
We export the current settings from Windows Firewall in order to return to them if necessary after restoring the default settings.
NOTEIn this manual, the configuration file will be saved to the “C” drive.
We export the current settings from Windows Firewall using the command:
netsh advfirewall export C:\Firewall-Config.wfw
Now you can restore the default settings in Windows Firewall.
Restore the default settings in Windows Firewall using the command:
netsh advfirewall reset
Windows Firewall defaults have been restored successfully.
You can also restore the default settings in Windows Firewall using Windows PowerShell.
On the keyboard, press the key combination “Win” and “x” and in the menu that opens, select “Windows PowerShell (Admin)”.
Restore the default settings in Windows Firewall using the command:
(New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()
Windows Firewall defaults have been restored successfully.
Social Channels
- 🎬 YouTube
- 🐦 X (Twitter)
- 🐘 Mastodon
- 🧵 Threads
- 🧊 Bluesky
- 🎥 TikTok
- 📣 daily.dev Squad
- ✈️ Telegram
- 🐈 GitHub
Community of IT Experts
- 👾 Discord
Is this content AI-generated?
No. Every article on this blog is written by me personally, drawing on decades of hands-on IT experience and a genuine passion for technology.
I use AI tools exclusively to help polish grammar and ensure my technical guidance is as clear as possible. However, the core ideas, strategic insights, and step-by-step solutions are entirely my own, born from real-world work.
Because of this human-and-AI partnership, some detection tools might flag this content. You can be confident, though, that the expertise is authentic. My goal is to share road-tested knowledge you can trust.