On my pc I have 2 physical adapters and several virtual adapters.
How can I modify the code to tell me which are physical and which are virtual?
Code: Select all
objWMIService := ComObjGet("winmgmts:{impersonationLevel = impersonate}!\\.\root\cimv2")
colItems := objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")._NewEnum
while colItems[objItem]
MsgBox % objItem.Description[0]