Tablets How to Backup and Restore Windows Firewall | BLOG IT

How to Backup and Restore Windows Firewall

Some times when you have a Windows Server with a lot of rules at the Firewall, it is a good idea to Backup it's configuration and some times when something goes wrong with server and you suspect that Firewall is the problem you will need to restore to it's last configuration.

To Backup and Restore Windows firewall you could use the following command:
       netsh advfirewall

To Backup your firewall use as follows:

  • netsh advfirewall export c:\Backups\Firewall-Backup-07162015.wfw

Where export is the instruction to Backup and "c:\Backups\Firewall-Backup-07162015.wfw" is the path and name for the backup file.

To Restore the last backup you use the next:

  • netsh advfirewall import c:\Backups\Firewall-Backup-07162015.wfw

Where import is the instruction to Restore the firewall configuration.

As you can see, it is very easy, you could test on your computer adding some rules and backup your configuration and after that removing it and finally restoring it.

Also you could schedule a task to perform this action on a daily basis through a batch file.

About Robert SA

    Blogger Comment
    Facebook Comment

0 comentarios: