Restore Windows Firewall Defaults
By Vladimir Mikhalev · Solutions Architect · Docker Captain · IBM Champion
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.

Related Posts
- 1Recovering a Corrupt Exchange Database with Stellar Repair — Real-World Lab TestSysAdmin & IT Pro · We deliberately broke an Exchange 2019 server to see if Stellar Repair for Exchange could recover a dirty-shutdown EDB file. Step-by-step recovery process, lab setup, and lessons learned.
- 2Distinctions Between Terminal, Command Line, Shell, and PromptSysAdmin & IT Pro · Learn the differences between terminal, command line, shell, and prompt in Linux. A beginner-friendly guide to essential CLI concepts and tools.
- 3Install Ubuntu Server 22.04 LTSSysAdmin & IT Pro · Step-by-step guide to install Ubuntu Server 22.04 LTS. Covers language, disk setup, OpenSSH, user creation, and system configuration for beginners.
- 4Install OTRS on Ubuntu ServerSysAdmin & IT Pro · Comprehensive guide to installing OTRS Community Edition on Ubuntu Server. Learn to configure PostgreSQL, Apache, SSL with Let's Encrypt, and launch OTRS securely.
Random Posts
- 1Disable Server Manager Autostart in Windows Server 2012 R2SysAdmin & IT Pro · Learn how to disable Server Manager autostart in Windows Server 2012 R2 using Server Manager settings, Task Scheduler, CMD, and PowerShell.
- 2Install Confluence on Ubuntu ServerSelf-Hosting · Step-by-step guide to install Confluence on Ubuntu Server with Apache, PostgreSQL, and Let's Encrypt SSL. Perfect for secure, production-ready deployments.
- 3Install WordPress Using Docker ComposeSelf-Hosting · Install WordPress with Docker Compose on Ubuntu using Traefik and Let's Encrypt. Full guide with step-by-step setup, HTTPS, and Docker networking.
- 4Configure Exchange Server 2016SysAdmin & IT Pro · Step-by-step guide to configure Exchange Server 2019. Learn how to set up mailbox databases, public folders, DNS, certificates, send/receive connectors, and more.