Hi, Try this function that I have just implemented. This function returns an array of MAC addresses of the active cards. #cs ----------------------------------------------------------------------------
AutoIt Version: v3.3.4.0
Author: MaxuN
Returns: Array[]
Script Function: Returns an array of MAC addresses of the active cards
#ce ----------------------------------------------------------------------------
#RequireAdmin
Func _GetMACAddress()
Local $objWMIService = ObjGet("winmgmts:\\localhost\root\CIMV2")
Local $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=true", "WQL", 0x10 + 0x20)
Local $i = 0, $Before = ""
Local $MACs[1]
For $objItem in $colItems
Local $item = $objItem.MACAddress
If $Before <> $item Then
$MACs[$i] = $item
$Before = $item
$i += 1
EndIf
If (UBound($MACs)-1) = $i Then ReDim $MACs[UBound($MACs)]
Next
Return $MACs
EndFunc I'm waiting your replys. P.S.: Sorry my English. P.S.1: How can I upload an "Attached File" ?. Thks