SOLVED: 4 Ways to Reset Firewall Settings to Default in Windows 10 & 11
Recently I locked down a PC to allow a customer to remote into our office and run a single app. To make it secure I made a number of firewall changes to block internet and even LAN access. The problem I have is I couldn’t recall what those changes were and I needed assign the PC to new office worker… not good.
How Backup the Windows Firewall via Command Line
In case you are worried about the firewall reset, you might want to backup the configuration to a simple text file before you make changes:
Right click on your START button and select COMMAND PROMPT (ADMIN), POWERSHELL (ADMIN) or WINDOWS TERMINAL (ADMIN)
Enter this command and press the enter key on your keyboard: netsh advfirewall export "C:\Temp\firewall-config.wfw"
How Reset the Windows Firewall To Default via Windows Security Center:
If you want to reset the Windows Firewall to default easity, just click through the Windows Security Center:
Double click on the Windows Security shield icon in your system tray (near the clock in your task bar)
Click FIREWALL & NETWORK PROTECTION (in the left menu, or the large tile on the right)
Click RESTORE FIREWALL TO DEFAULT
Click the RESTORE button
How Reset the Windows Firewall To Default via Control Panel:
If you want to reset the Windows Firewall to default easily, just click through the Control Panel:
Control Panel > All Control Panel Items > Windows Defender Firewall > Restore defaults
How Reset the Windows Firewall To Default via PowerShell:
Right click on the START button and select POWERSHELL (ADMIN)
Enter this command, then press the ENTER key on your keyboard: (New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()
How Reset the Windows Firewall To Default via Command Prompt:
Start a CMD PROMPT (ADMIN)
Enter this command, then press the ENTER key on your keyboard: