Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ONLY LAN MAC ADDRESS

$
0
0

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


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>