Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - Because sometimes it is rocket science.

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews


Opera One
Everything
you need.
Already
there.
AI assistant
Aria, built right in
Free VPN
No account needed
Ad blocker
Faster, cleaner web
Tab Islands
Grouped browsing
Useful sidebars
Make it yours
No Clunky Extensions Needed.



MajorGeeks Approved.



Download free

spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Smart Defrag
3. Macrium Reflect FREE Edition
4. K-Lite Mega Codec Pack
5. MusicBee
6. Microsoft Visual C++ 2015-2022 Redistributable Package
7. Sergei Strelec's WinPE
8. K-Lite Codec Pack Full
9. Visual C++ Redistributable Runtimes AIO Repack
10. McAfee Removal Tool (MCPR)
More >>

top reads

Star How Much Storage Space Are Your Installed Apps Using in Windows 11?

Star How To Reset and Fix the Settings App in Windows 11

Star How To Remove the Windows 11 Updated Start Menu

Star How To Download a Windows 11 ISO

Star How To Disable Drag Tray

Star How To Boot Into WinRE (Windows Recovery Environment)

Star How To Find the Installation Date of Apps

Star Recently Opened Files - How To Hide or Show Them In Jump Lists, File Explorer, and Start Menu

Star How To Change the Name of a Local or Microsoft Account

Star How To Remove OneDrive From the Navigation Pane in File Explorer


MajorGeeks.Com » Overview » How To Easily Backup and Import Windows Defender Firewall Rules

How To Easily Backup and Import Windows Defender Firewall Rules

By selma čitaković

on 04/19/2026

Hop into IObit’s Easter Sale and save up to 90% on top utilities, plus score 3 FREE months before the deal disappears! 🐰🌷🏆

{$insert['content_title']


If you put in a lot of effort in setting up your Windows Defender Firewall rules, you'll probably want to back them up. You can then quickly import and restore all of your settings at once when needed. It will only take a couple of minutes.

But before we get into it, make sure you've signed in as an administrator first. You'll need elevated privileges to export and import your firewall policy.

Via Windows Security



First, let's access the legacy tool for configuring your firewall - Windows Firewall with Advanced Security. You can find it by opening Windows Security and going to Firewall & network protection > Advanced settings.

Or, you can use this shortcut:

  1. Press Win + R, type wf.msc, and press Enter.
  2. To back up your settings and rules: Select Windows Defender Firewall with Advanced Security on Local Computer on the left side, then click on Export Policy on the right, under Actions. Pick a location where you want to save the .wfw file, name it, and save it.
  3. You should see a message saying "Policy successfully exported." Click OK.
  4. To import the firewall settings and rules: Select Windows Defender Firewall with Advanced Security on Local Computer on the left side, then click on Import Policy on the right, under Actions. Confirm your decision by clicking Yes, find the .wfw file you want to import, and hit Open.
  5. Like before, you should see a message saying "Policy successfully imported." Click OK.




Via Command



Alternatively, you can achieve the same results with Command Prompt or PowerShell. First, let me show you how to export your rules:

  1. Press Win + X, select Terminal (Admin), and pick either Command Prompt or PowerShell. Both work, as long as they're elevated.
  2. Type the following command in Command Prompt, and press Enter: netsh advfirewall export "%userprofile%\Desktop\WindowsFirewallSettingsBackup.wfw"
  3. Or, type this one in PowerShell, and press Enter: netsh advfirewall export "$Env:USERPROFILE\Desktop\WindowsFirewallSettingsBackup.wfw"




This will save a backup .wfw file on your desktop. You can keep it there, or move it somewhere else and get it ready for the next steps.

Now, to import it:

  1. Right-click the .wfw file and select Copy as path. You'll need it in a bit.
  2. Type the following command in elevated Command Prompt or PowerShell: netsh advfirewall import ".wfw file path"
  3. Replace ".wfw file path" with the one you just copied, and hit Enter.




That should restore your Windows Defender Firewall settings. Just make sure you import the right policy, as it will overwrite your current settings. You can also always restore the defaults and start from there.

selma citakovic
selma citakovic
Selma is a gamer, geek and gremlin hunter with a passion for cyber security and smashing Windows bugs before they bite. She’s IBM-certified, loves real freeware, despises bloatware, and powers most of her troubleshooting with an unhealthy amount of coffee.

comments powered by Disqus


© 2000-2026 MajorGeeks.com
Powered by Contentteller® Business Edition