loloc = createobject('WbemScripting.SWbemLocator') omgr = loloc.ConnectServer() oNetwork = omgr.execquery("select * from Win32_NetworkAdapterConfiguration where IPEnabled='true'") FOR EACH objNic IN oNetwork ? objNic.Caption ENDFOROn my machine it returns:
[00000000] 3Com EtherLink 10/100 PCI TX NIC (3C905B-TX) [00000007] Microsoft TV/Video Connection [00000008] Realtek RTL8139 Family PCI Fast Ethernet NIC [00000009] Intel(R) PRO/1000 CT Network Connectionand the last entry is my active connection.