UNSOLVED

BrechtMo

updated

9 years ago

Closed

B

BrechtMo

1 Rookie

•

12 Posts

0

4841

March 1st, 2018 08:00

Get passthrough mac address using WMI/CIM

Hi,

I'm looking for a way to retrieve the passthrough mac address using a script. This is trivial when a laptop is connected to a dock: in that case you can find the mac address of the NIC with name "Realtek USB GbE Family Controller". If your drivers are OK, that is your pass-through mac address.

However when the pc is not connected to an USB-C dock, I can't find a way to get that mac address. It's important to log that mac address in our asset management tool as this is the mac address a networking switch will see once the laptop connects with a dock.
I have only been able to see the mac address in the bios interface.

Would there be a tool or WMI class where I can retrieve this mac address?

thanks.

This conversation is no longer open for comments or replies and is no longer visible to community members.

  • jphughan

    11 Legend

    •

    13985 Posts

    •

    79931 Points

    4744

    0

    Posted March 1st, 2018 10:00

    I admittedly haven't tested this on a system that supports MAC address passthrough but does not have its own built-in NIC, but the PowerShell command below will all enabled network adapters on the system and their MAC addresses.  You can omit the Computer parameter if want to run it against the local host:

    gwmi Win32_NetworkAdapterConfiguration -Computer TargetPC | select Description,MACAddress

    As you'll see, there are often several MAC addresses on a given system due to virtual interfaces that exist in Windows, but if you find a pattern to the name of the interface and/or the MAC Address itself, you can add the "where" cmdlet to filter only what you want.  If the above command doesn't work at all for your systems, Dell has the Dell Command suite of applications, part of which involve command-line tools that can be used to read and modify BIOS settings, so if you see the MAC Address you want in the BIOS, you might be able to grab it with the correct Dell Command application.

  • BrechtMo

    1 Rookie

    •

    12 Posts

    4738

    0

    Posted March 2nd, 2018 03:00