enable/disable Windows firewall rules

 

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
Author: ismdeep
License: Copyright (c) 2021 CC-BY-NC-4.0 LICENSE