NTDOC and Radimus -
Poking some more in the Win2k registry and my login script I've some more things that may be useful.1. Check key 'HKLM\Software\MS\Windows NT\CV\NetworkCards\(enum key)' ($WinKey). This will provide descriptive name of NIC that is displayed under LAN connection. If multiple NIC cards installed on the system they will be listed here. Most importantly, Will also provide the 32-character alphanumeric string name used elsewhere to identify the NIC under value '$WinKey, ServiceName' ($Nic).
2. You can also check key 'HKLM\System\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' ($ClassKey). This key contains more NIC details. Specifically, you would want to check '$ClassKey\(enum subkey), NetCfgInstanceId' ($IPKey) for value that matches $Nic found in step 1. Then you could check '$IPKey\Linkage, UpperBind' for value 'Tcpip' to reconfirm this device is using the Tcpip protocol and is a valid NIC selection.
3. Can also examine key 'HKLM\System\CCS\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\$Nic, Name' to confirm the connection type.
4. Check key 'HKLM\System\CCS\Services\$Nic\Parameters\Tcpip'. This will display some of the IP configuration info stored in other reg keys referenced below in point 7.
5. Check 'HKLM\System\CCS\Services\RemoteAccess\Interfaces\(enum key), InterfaceName'. If value is = $Nic you have a NIC. Other values I know of are loopback, Internal.
6. Check key 'HKLM\System\CCS\Services\Tcpip\Linkage, Bind' to track the adapters bound to TCPIP protocol. Value under 'HKLM\System\CCS\Services\Tcpip\Linkage, Route' will likely define the NIC that is live on the network, which was NTDOC's original goal. The entries here are REG_MULTI_SZ, so I've yet to test the values returned with KiX 3.63.
7. Check key 'HKLM\System\CCS\Services\Tcpip\Parameters\Interfaces\$Nic'. As noted by Radimus, this contains the most detailed info of the IP configuration of the NIC.
It appears 'HKLM\System\CCS\Services\Tcpip\Parameters\Interfaces\' will list IP-aware devices beyond specifically the installed Ethernet adapters. Therefore, use values from 1 above to narrow the keys to check.
As for WinNT systems, check 'HKLM\System\CCS\NetBT\Adapters' to obtain NIC value ($Nic).
Next, check key 'HKLM\System\CCS\Services\$Nic, Start'. This value will let you know specifically if the NIC is started when the system is booted. I believe a value of '3' indicates this is the case, though I am not positive of this value just yet. This will help for systems with multiple NIC's which are not run simultaneously.
Hope this info is useful.
Bill