Tired of using the good ol' GUI? Hop over to the cool peoples side and use the command line to configure, export and manage your firewall settings. And by the way, there are differences between Windows Firewall and WFAS
| NETSH command: |
Description: |
|
Netsh advfirewall show allprofiles |
Displays the properties of all advanced firewall profiles |
|
Netsh advfirewall dump |
Dumps the current firewall configuration to a script that can restore firewall configuration |
|
Netsh advfirewall reset |
Returns a firewall to the default configuration |
|
Netsh advfirewall consec |
Switches to the connection security context, enabling the creation of connection security rules |
|
Netsh advfirewall firewall add rule |
Can create an advanced firewall rule, using all the categories available for creating a rule by using the GUI |
|
Netsh advfirewall export c:\temp\%computername%.wfw |
Quick command to export firewall settings |
|
Netsh advfirewall import c:\temp\%computername%.wfw |
Quick command to import firewall settings to a pc. |
Group policy settings Check:
Navigate to the Computer
Configuration\Policies\Windows Settings\Security
Settings\Windows Firewall with Advanced
Security\Windows Firewall With Advanced Security
node