Rename a Network Adapter with Rename-NetAdapter
Give network adapters human-readable names (Office-LAN, VPN-Dongle) from PowerShell instead of clicking through ncpa.cpl.
01Command
$ Rename-NetAdapter -Name "Ethernet 2" -NewName "Office-LAN"02What it does
Windows auto-names adapters "Ethernet", "Ethernet 2", "Wi-Fi 3" and so on, which gets unmanageable with USB dongles and virtual adapters. Rename-NetAdapter changes the friendly name shown in Network Connections, and that name is also what other cmdlets use with -InterfaceAlias (Set-DnsClientServerAddress, Set-NetConnectionProfile...), so clean names make every later command easier. Run Get-NetAdapter first to see the exact current names, including hidden ones.
03Risk
04Undo
$ Rename-NetAdapter -Name "Office-LAN" -NewName "Ethernet 2"05Sources
- Rename-NetAdapterEvidence: Rename-NetAdapter renames a network adapter identified by -Name using -NewName; renaming requires elevation.
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
A built-in PowerShell one-liner that answers 'is port 5432/3389/443 actually open through this network?' — no telnet client needed.
The PowerShell-native replacement for netstat: filter connections by state, port, or process and pipe results instead of parsing text.
The modern, scriptable replacement for nslookup: ask for exact record types, hit specific DNS servers, and see TTLs as objects.