Bill, (or others)

How can I enum the subkey of indexes in a loop? to get and set $WinKey for "ServiceName"

code:
$Index = 0
:Loop1
$WinKey = ENUMKEY("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards", $Index)
If @ERROR = 0
? "Name found: $WinKey"
$Index = $Index + 1
goto Loop1
Endif

I think I have found another way also. The key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0000\MWIEnable when set to 1 appears to "indicate" that this is the live connecting NIC card. I'm not sure how to do an Enumkey based on another enumkey of the main key.

I'm not positive, but I think MWI stands for Message Waiting Indicator. I have looked at a couple of remote systems and compared this entry to the pinging address and each one matches the interface when this setting is set to 1

[ 19 December 2001: Message edited by: NTDOC ]