Skip to content

Instantly share code, notes, and snippets.

@EdoardoVignati
Last active June 23, 2026 13:34
Show Gist options
  • Select an option

  • Save EdoardoVignati/4b18f0ac458555bf2a42a11da87f5fcf to your computer and use it in GitHub Desktop.

Select an option

Save EdoardoVignati/4b18f0ac458555bf2a42a11da87f5fcf to your computer and use it in GitHub Desktop.
Enable/Disable ping/firewall
New-NetFirewallRule -DisplayName "Allow ICMPv4-In" -Protocol ICMPv4 -IcmpType 8 -Direction Inbound -Action Allow
Remove-NetFirewallRule -DisplayName "Allow ICMPv4-In"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment