>Hugo,
>Ahh I see so I didn't read your first post wrong after all. I thought you were using Win32_NetworkAdapterConfiguration.
>Looking into this some more I started remembering (I created this class about a year ago) the reason I choose Win32_NetworkAdapterConfiguration over Win32_NetworkAdapter, I needed the IP address and IP subnet which can only be found in Win32_NetworkAdapterConfiguration. I quess what I can do is pull everything I need from Win32_NetworkAdapterConfiguration and then try to find the matchine MAC address in Win32_NetworkAdapter to pull the NetConnectionID.
>
>I ran into a little problem testing this though NetConnectionID is null for every element. Ohh well I think I am on the right track though.
>Thank you for taking the time to reply to me.
>
>Sincerely,
>Einar
>
Einar,
Regarding NetConnectionID, I do not know, it works fine for me, I got my two connections with the name they have in the Icon of the Control Panel. I used loWMI.ExecQuery("select * from Win32_NetworkAdapter where availability=3 and MACAddress<>null and AdapterTypeID=0").
Now, if you want to pull some info from one class and some other info from the other, I think the correct way of doing it is thru it's associator class, called Win32_NetworkAdapterSetting
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges