Published by


Brink's Avatar
Administrator

Posts: 16,575

Show Printable Version 


How to Backup and Restore Windows Firewall Settings in Windows 10

information   Information
Windows Firewall can help prevent hackers or malicious software from gaining access to your PC through the Internet or a network.

You can export (backup) and import (restore) your Windows Firewall settings. These settings will include Windows Firewall on or off for all network locations, notification settings, allowed apps, and Windows Firewall with Advanced Security settings.

Importing (restoring) Windows Firewall settings from a backup will override and replace the current settings on the PC.

This tutorial will show you how to backup and restore Windows Firewall settings in Windows 10.

You must be signed in as an administrator to backup and restore Windows Firewall settings.


CONTENTS:
  • Option One: To Backup (export) Windows Firewall Settings in Windows Firewall with Advanced Security
  • Option Two: To Restore (import) Windows Firewall Settings in Windows Firewall with Advanced Security
  • Option Three: To Backup (export) Windows Firewall Settings in Command Prompt
  • Option Four: To Restore (import) Windows Firewall Settings in Command Prompt

EXAMPLE: Windows Firewall settings
Click image for larger version. 

Name:	Windows_Firewall_Customize_Settings.jpg 
Views:	16 
Size:	92.0 KB 
ID:	111382
Click image for larger version. 

Name:	Windows_Firewall_Alllowed_Apps.jpg 
Views:	11 
Size:	112.1 KB 
ID:	111383
Click image for larger version. 

Name:	Windows_Firewall_with_Advanced_Security.jpg 
Views:	11 
Size:	216.0 KB 
ID:	111384





Windows Firewall Settings - Backup and Restore in Windows 10 OPTION ONE Windows Firewall Settings - Backup and Restore in Windows 10
To Backup (export) Windows Firewall Settings in Windows Firewall with Advanced Security

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

2. Click/tap on the Advanced settings link on the left side. (see screenshot below)

Click image for larger version. 

Name:	Backup-Restore_Windows_Firewall_settings-1.png 
Views:	11 
Size:	45.5 KB 
ID:	111385

3. Click/tap on Action (menu bar), and click/tap on Export Policy. (see screenshot below)

Click image for larger version. 

Name:	Backup-Restore_Windows_Firewall_settings-2.jpg 
Views:	14 
Size:	139.0 KB 
ID:	111386

4. Navigate to where you want to export the .wfw file to, type in a name (ex: "WindowsFirewallSettingsBackup") you want for the .wfw file, and click/tap on Save. (see screenshot below)

Name:  Backup_Windows_Firewall_settings-3.png
Views: 106
Size:  24.2 KB

5. Click/tap on OK. (see screenshot below)

Name:  Backup_Windows_Firewall_settings-4.png
Views: 104
Size:  5.1 KB

6. When finished, you can close the Windows Firewall with Advanced Security window if you like.





Windows Firewall Settings - Backup and Restore in Windows 10 OPTION TWO Windows Firewall Settings - Backup and Restore in Windows 10
To Restore (import) Windows Firewall Settings in Windows Firewall with Advanced Security

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

2. Click/tap on the Advanced settings link on the left side. (see screenshot below)

Click image for larger version. 

Name:	Backup-Restore_Windows_Firewall_settings-1.png 
Views:	11 
Size:	45.5 KB 
ID:	111385

3. Click/tap on Action (menu bar), and click/tap on Import Policy. (see screenshot below)

Click image for larger version. 

Name:	Backup-Restore_Windows_Firewall_settings-2.jpg 
Views:	14 
Size:	139.0 KB 
ID:	111386

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

Name:  Restore_Windows_Firewall_settings-3.png
Views: 101
Size:  9.5 KB

5. Navigate to where you saved the exported .wfw file to, select the .wfw file (ex: "WindowsFirewallSettingsBackup"), and click/tap on Open. (see screenshot below)

Click image for larger version. 

Name:	Restore_Windows_Firewall_settings-4.png 
Views:	10 
Size:	25.9 KB 
ID:	111390

6. Click/tap on OK. (see screenshot below)

Name:  Restore_Windows_Firewall_settings-5.png
Views: 100
Size:  5.0 KB

7. When finished, you can close the Windows Firewall with Advanced Security window if you like.





Windows Firewall Settings - Backup and Restore in Windows 10 OPTION THREE Windows Firewall Settings - Backup and Restore in Windows 10
To Backup (export) Windows Firewall Settings in Command Prompt

Note   Note
To see more usage options for the Netsh AdvFirewall Firewall command, see: Netsh AdvFirewall Firewall Commands - TechNet


1. Open an elevated command prompt.

2. Enter the command below into the elevated command prompt, and press Enter. (see screenshots below)

netsh advfirewall export "%userprofile%\Desktop\WindowsFirewallSettingsBackup.wfw"

Click image for larger version. 

Name:	export_Windows_Firewall_settings-command.png 
Views:	9 
Size:	16.4 KB 
ID:	111392

3. You will now have a WindowsFirewallSettingsBackup.wfw file saved to your desktop that is the backup of your Windows Firewall settings. You can move this file to where you like to keep it saved at.

4. When finished, you can close the elevated command prompt if you like.





Windows Firewall Settings - Backup and Restore in Windows 10 OPTION FOUR Windows Firewall Settings - Backup and Restore in Windows 10
To Restore (import) Windows Firewall Settings in Command Prompt

Note   Note
To see more usage options for the Netsh AdvFirewall Firewall command, see: Netsh AdvFirewall Firewall Commands - TechNet


1. Open an elevated command prompt.

2. Enter the command below into the elevated command prompt, and press Enter. (see screenshots below)

netsh advfirewall import "Full path of .wfw file"

Note   Note
Substitute Full path of .wfw file in the command above with the actual full path of the exported .wfw file (ex: "WindowsFirewallSettingsBackup").

For example: netsh advfirewall import "C:\Users\Brink\Desktop\WindowsFirewallSettingsBackup.wfw"


Click image for larger version. 

Name:	import_Windows_Firewall_settings-command.png 
Views:	10 
Size:	16.3 KB 
ID:	111393

3. When finished, you can close the elevated command prompt if you like.


That's it,
Shawn