Registry Tip : Determine NIC Address

by Wayne Maples [Published on 20 April 2004 / Last Updated on 20 April 2004]

Reliable method of obtaining the NIC address programmatically.

A reliable method of obtaining the NIC address programmatically. If NetworkAddressLocal=0, there is a NIC card installed. The contents of NetworkAddress is a six-byte array that corresponds to the NIC address.

Hive: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Description\Microsoft\Rpc\UuidTemporaryData
Name: NetworkAddressLocal
Type: REG_DWORD
Value: 0=NIC installed
Type: REG_DWORD
Value: 0=NIC installed
Name: NetworkAddress=NIC address
This address has been known to be incorrect when Ghosting or other image duplication techniques have been used to install a set of PCs. A series of PCs ghosted were found to have the same NIC address. If NetBios protocols are installed, standard NetBios calls may be more reliable.

Featured Links