netsh firewall set icmpsetting 8 ENABLE Windows 7: netsh advfirewall firewall add rule name="ICMP echo" protocol=icmpv4:8,any dir=in action=allow