10-06-2016, 10:27 AM
was playing with this, that enumerates network interfaces
typelib WbemScripting {565783C6-CB41-11D1-8B02-00600806D9B6} 1.1
WbemScripting.SWbemServices objWMIService._getfile("winmgmts:")
WbemScripting.SWbemObjectSet colProcesses = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionId != NULL ","WQL",WbemScripting.wbemFlagReturnImmediately|WbemScripting.wbemFlagForwardOnly,0)
;"SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionId != NULL"
WbemScripting.SWbemObject objProcess
foreach objProcess colProcesses
,out objProcess.Properties_.Item("Name" 0).Value
will try yours instead...
typelib WbemScripting {565783C6-CB41-11D1-8B02-00600806D9B6} 1.1
WbemScripting.SWbemServices objWMIService._getfile("winmgmts:")
WbemScripting.SWbemObjectSet colProcesses = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionId != NULL ","WQL",WbemScripting.wbemFlagReturnImmediately|WbemScripting.wbemFlagForwardOnly,0)
;"SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionId != NULL"
WbemScripting.SWbemObject objProcess
foreach objProcess colProcesses
,out objProcess.Properties_.Item("Name" 0).Value
will try yours instead...
