If you look at the Win32_NetworkAdapterConfiguration documentation comments , you will see a link to Win32_NetworkAdapter when working with Vista.
'Vista only code??? Set colAdapters = objWMIService.Execquery ("SELECT * FROM Win32_NetworkAdapter WHERE NetEnabled = True") For Each nic in colAdapters msg = "nic.DeviceId: " & nic.DeviceId & vbCRLF _ & "nic.Name: " & nic.Name & vbCRLF _ Next
From this, you can get InterfaceIndex and find the IP address from the Win32_IP4RouteTable class.
This is certainly a roundabout way to get information compared to using Win32_NetworkAdapterConfiguration .
source share