enable/disable Windows firewall rules

2017-03-20 / Windows

 

enable firewall rule:

run, netsh advfirewall firewall set rule name="NameOfFirewallRule" new enable=yes

disable firewall rule:

run, netsh advfirewall firewall set rule name="NameOfFirewallRule" new enable=no