Here is what I get back from Radimus's code.

code:
; find ipconfig info (for up to 10 adapters)
$interfaces="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces"
$nic=0 dim $ipaddrs[9] dim $gateway[9] dim $subnetm[9] dim $namesvr[9]
:nicloop
$niccard=enumkey("$interfaces",$nic)
if @error=0
$Isdhcp=readvalue("$interfaces\$niccard","EnableDHCP")
if $Isdhcp="1" $adddhcp="Dhcp" else $adddhcp="" endif
$ipaddrs[$nic]=readvalue("$interfaces\$niccard","$adddhcp"+"IPAddress")
$gateway[$nic]=readvalue("$interfaces\$niccard","$adddhcp"+"DefaultGateway")
$subnetm[$nic]=readvalue("$interfaces\$niccard","$adddhcp"+"SubnetMask")
$namesvr[$nic]=readvalue("$interfaces\$niccard","$adddhcp"+"NameServer")
$gateway[$nic]=left($gateway[nic],len($gateway[$nic])-1)
if $gateway[$nic] > "0.0.0.0" $mygw=$gateway[$nic] endif
$nic=$nic+1
goto nicloop
endif
? $nic
? $mygw
? $gateway[$nic]

code:

C:\SCRIPTS\KiX2001>kix32 checknic.kix

4



Maybe I'm doing something wrong... I only get back the number 4 on screen. I have 4 Nic Adapters... As shown by the WMI Code..

code:
System Manufacturer is  = System Manufacturer
System Model is = System Name
System Serial Number is = SYS-1234567890
System BIOS Version is = ASUS CUSL2 ACPI BIOS Revision 1009
System BIOS Date is = Award Medallion BIOS v6.0
CPU Speed is = 938 Mhz
System Memory = 255 MB
Dimm Size = 128 MB
Dimm Size = 128 MB
Video Card is = All-in-Wonder RADEON
Video Res is = 1600 x 1200 x 4294967296 colors
Modem is =
Network Card is = Cisco Systems VPN Adapter
Network Card is = Cisco Systems VPN Adapter
Network Card is = Cisco Systems VPN Adapter
Network Card is = WAN Network Driver
Network Card is = Linksys LNE100TX(v5) Fast Ethernet Adapter

Please point me in the right direction here Radimus...