How to find a relation between WMI NetworkAdapter and WMI Modem

J

Joe

Hello all.

I have a problem.
I want to be able to list all the network adapters and modems on my
machine even if they are not connected to the network.
When they do connect to the network, I want to display their network
properties (IP, gateway, metrics, etc.)
I can obtaint the network adapter list form Win32_NetworkAdapter and
the modems list from Win32_POTSModem.
When the devices are connected to the network I can get the connection
details from Win32_NetworkAdapterConfiguration.

When the modem is connected to the network, another NetworkAdapter is
added to the Win32_NetworkAdapterConfiguration list (and to
Win32_NetworkAdapter as well).
The problem is, that I can't find any connection between the
NetworkAdapter and modem behind it.
How can I identify the right modem behind the adapter?

Can I do it only with WMI? Is there another way to find this relation?

Thanks,
Joe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top