Got hammered with problems at work today.. here's the header code:
 Code:
Break On

Dim $, $aND[19], $aNicInfo, $N, $P

$=setoption("Wrapateol","on")
$=setoption("Explicit","off")
$=setoption("NoVarsinstrings","on")
$=setoption("NoMacrosinstrings","on")

If Not IsDeclared($TARGET)
  Global $TARGET
EndIf

If $TARGET = '' 
  $Target = @WKSTA
EndIf

$aND[0]  = '       Adapter Description: '
$aND[1]  = '              Manufacturer: '
$aND[2]  = '                  NIC GUID: '
$aND[3]  = '        Speed/Duplex value: '
$aND[4]  = '         Speed/Duplex text: '
$aND[5]  = '            Driver Version: '
$aND[6]  = ' DHCP boolean (1=Use DHCP): '
$aND[7]  = 'IP settings  (add,mask,gw): '
$aND[8]  = '               Domain Name: '
$aND[9]  = '           DNS Server list: '
$aND[10] = '  DHCP Server & Lease info: '
$aND[11] = '          WINS Server list: '
$aND[12] = '            Interface Name: '
$aND[13] = '    Static DNS Server List: '
$aND[14] = '   Reserved for future use: '
$aND[15] = '                NIC Status: '
$aND[16] = '               MAC Address: '
$aND[17] = '                 TEAM flag: '
$aND[18] = '     # of adapters in team: '
$aND[19] = '  GUIDs of teamed adapters: '


$aNicInfo = NicInfo($TARGET)

For Each $N in $aNicInfo
  For $P = 0 to 19
    $aND[$P] $N[$P] ?
  Next
  ?
Next 


Just tack the NicInfo UDF to the end of this code and save it as NicInfo.kix. Create a batch file NIC.BAT with the following line in it:
 Code:
@kix32.exe nicinfo.kix $TARGET="%1"

Run NIC, or NIC COMPUTERNAME to get a list of every network adapter and settings. This header was an example of how to use the UDF and became a useful tool to quickly verify remote network settings.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D