windows firewall
Control applet
wf.msc
Reset
reset all rules and settings and turns firewall on blocking all inbound connections
netsh advfirewall reset
Export Settings
netsh advfirewall export "C:\temp\WF.wfw"
allow icmp
netsh advfirewall firewall add rule name="All ICMP V4" dir=in|out action=block protocol=icmpv4
set log
netsh advfirewall set currentprofile logging filename "C:\temp\firewall.log"
show rules
netsh advfirewall firewall show rule name=all
Disable/Enable Firewall
netsh advfirewall set allprofiles state on|off