Windows/Ping

From Omnia
Jump to navigation Jump to search

Firewall Allow Ping

Add:

netsh advfirewall firewall add rule name="Allow ICMPv4 Ping" protocol=icmpv4:8,any dir=in action=allow

Verify

netsh advfirewall firewall show rule name="Allow ICMPv4 Ping"

Remove:

netsh advfirewall firewall delete rule name="Allow ICMPv4 Ping"

Powershell Version

New-NetFirewallRule -DisplayName "Allow ICMPv4 Ping" `
   -Direction Inbound `
   -Protocol ICMPv4 `
   -IcmpType 8 `
   -Action Allow