Skip to content

Instantly share code, notes, and snippets.

@rwp0
Created September 16, 2025 01:07
Show Gist options
  • Save rwp0/a1dc33e9805620c224e0202c12e2b37f to your computer and use it in GitHub Desktop.
Save rwp0/a1dc33e9805620c224e0202c12e2b37f to your computer and use it in GitHub Desktop.
netsh aliases
# Usage:
# netsh -a alias.netsh.txt dns
# netsh -a alias.netsh.txt
# https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netsh
alias dns-wifi interface ipv4 show dnsservers name="Wi-Fi"
alias dns-ethernet interface ipv4 show dnsservers name="Ethernet"
alias dns interface ipv4 show dnsservers name="Wi-Fi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment