Hello all,
I'm trying to capture only the LAN mac address and ignore all other cards (wireless,etc..)
I'm using this code:
Func MacAddress2() $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}") $netAdapterSet = $objWMIService.ExecQuery("select MACAddress from Win32_NetworkAdapterConfiguration Where IPEnabled = True") For $netAdapter in $netAdapterSet MsgBox(0, "", $netAdapter.MACAddress) Next $objNetwork = "" $netAdapterSet = "" EndFunc
Which displays all active mac addresses....although I want only LAN and doesnt matter if its active or not i still want it to display only the LAN mac address.. anyone know how to do this?
Thanks