Skip to content

Instantly share code, notes, and snippets.

@ghotz
Created April 14, 2023 14:32
Show Gist options
  • Save ghotz/84d3a1527f8093f6b1cbb4ee57dfe93a to your computer and use it in GitHub Desktop.
Save ghotz/84d3a1527f8093f6b1cbb4ee57dfe93a to your computer and use it in GitHub Desktop.
Cleanup WSL Firewall Rules
Get-NetFirewallRule | ? {$_.Name -like "HNS Container Networking - DNS (UDP-In)*" } | Remove-NetFirewallRule
Get-NetFirewallRule | ? {$_.Name -like "HNS Container Networking - ICS DNS (TCP-In)*" } | Remove-NetFirewallRule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment