MACID

(Engine-Level Function)

Description: Enumerates and returns the MAC IDs registered on a particular machine.
Returns: A 2D array containing network card names and MACIDs
Usage: Script only.
Function Groups: Software and Hardware
Related to:
Format: MACID()
Parameters: None
Comments: MACIDs are unique to the NIC cards present within the machine but are NOT guaranteed to be unique for the virtual NICs generated for things like virtual machines or NIC emulations.
The name of the resource that generated the ID is provided with each ID to help sift out faux MACs. Note that Windows appears to always provide the real MACs first, and since almost all machines have a built-in NIC the first MAC can be assumed to be real.

Example:

MACIDInfo =  MACID();  

On a machine, which has two network cards, MACIDInfo will have (for example):

MACIDInfo[0][0] == Realtek RTL8169/8110 Family PCI Gigabit Ethernet NIC (NDIS 6.0)
MACIDInfo[0][1] == Realtek PCIe GBE Family Controller
MACIDInfo[1][0] == a buffer containing the binary MAC address for the card named in MACIDInfo[0][0]
MACIDInfo[1][1] == a buffer containing the binary MAC address for the card named in MACIDInfo[0][1]