Tag: interface
Powershell: List NIC with IP, MAC and Description
by Harry on Mar.26, 2010, under Development, Microsoft
Hi Y’all, Just a quick entry for list the IP, MAC and Description fields of the NIC that are IP enabled on a system using Powershell. Might be handy for when the network team asks for MAC addresses to trace ports.
Get-WMIObject Win32_NetworkAdapterConfiguration | where{$_.IPEnabled -eq “TRUE”} | Select-Object MACAddress,caption,description,IPAddress
Note: This command is all on one line, so beware of the word wrapping.
Update: this one is little better, it gets the network connection name as seen by Network Connections Window
Get-WmiObject win32_networkadapter | where {$_.physicaladapter -eq $true} | Select-Object macaddress,netconnectionid