Solução
Netsh advfirewall is a command-line tool for Windows Firewall with Advanced Security that helps with the creation, administration, and monitoring of Windows Firewall and IPsec settings and provides an alternative to console-based management.
Source: Netsh Commands for Windows Firewall with Advanced Security
Backup
-
Abra um prompt de comando elevado .
-
Digite ou cole o seguinte comando e pressione Enter :
netsh advfirewall export "%userprofile%\Desktop\FirewallPolicy.wfw"
O arquivo deve ser salvo na área de trabalho.
Restaurar
-
Abra um prompt de comando elevado.
-
Digite ou cole o seguinte comando e pressione Enter :
netsh advfirewall import "X:\Path\to\FirewallPolicy.wfw"