Get MAC address and network speed informations on a remote computer with PowerShell

Hello,

You can retrieve network adapter informations with that WMI call :

Get-WmiObject -Class Win32_NetworkAdapter -ComputerName SOFSR2Node2

This line get all network cards plug in the remote computer, but it’s kind of verbose, so you need to add a filter to retrieve only “active” network cards :

Get-WmiObject -Class Win32_NetworkAdapter -ComputerName SOFSR2Node2 -Filter "NetConnectionID LIKE '%'"

Gwmi-NetWorkAdapter

As you can see, you have the speed, but not the MAC address but if you pipe that in “Get-Member”, you will see a property called “MACAddress”, so :

Get-WmiObject -Class Win32_NetworkAdapter -ComputerName SOFSR2Node2 -Filter "NetConnectionID LIKE '%'" | Select-Object Name,NetConnectionID,Speed,MACAddress

Gwmi-NetWorkAdapterMACAddress

You can also check the Get-WmiObject help and MSDN.

Leave a Reply