netsh advfirewall firewall add rule name="ICMP Allow Ping" protocol=icmpv4:8,any dir=in action=allow To to only Private profile:
New-NetFirewallRule -DisplayName "Allow Ping" -Protocol ICMPv4 -Direction Inbound -Action Allow For restricted scope (local subnet only): windows 11 ping zulassen
netsh advfirewall firewall delete rule name="ICMP Allow Ping" Open PowerShell as Administrator : netsh advfirewall firewall add rule name="ICMP Allow Ping"