简体   繁体   中英

Enumerate all NICs with IP and MAC addresses in powershell

How can I list all NICs with name, MAC and IP address in PowerShell?

I know that I can combine Get-NetIPAddress and Get-NetAdapter but is there a simple way to do it because it seems to be one of the most common things in network management.

The WMI class Win32_NetworkAdapterConfiguration contains this information:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -computer localhost | Select Description, MACAddress, IPAddress

And more:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -computer localhost | Select *

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM