okay i'm in a bit of a rush myself, finishing work now so i'll leave it up but its a bit of a mess at the moment, its basically your code grasshopper but i havent finished adapting it for win2k,
here it is anyway
code:
; Kix script to 'fix' registry keys with regards to NIC's
; Authored from Kix Bulletin Board, courtesy of grasshopper and sealeopard
CALL "arrayenumkey.kix"
$NicKey = EnumKey ("HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkCards",0)
$NicCrd = ReadValue ("HKLM\Software\Microsoft\WindowsNT\CurrentVersion\NetworkCards\"+$NicKey,"ServiceName")
$TCPIPUpdate=ReadValue("HKLM\SOFTWARE\MyCompany\DesktopSettings","TCPIPUpdate")
If $TCPIPUpdate<>"Updated"
If @PRODUCTTYPE="Windows 2000 Professional"
$array=arrayenumkey('HKLM\System\CurrentControlSet\Services\NetBT\Parameters\Interfaces\')
For Each $NicCrd In $array
WriteValue ("HKLM\System\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_"+$NicCrd,"NameServerList","192.168.12.55","REG_SZ")
Next
WriteValue ("HKLM\System\CurrentControlSet\Services\Tcpip\Parameters", "Domain","", "REG_SZ")
WriteValue ("HKLM\System\CurrentControlSet\Services\Tcpip\Parameters", "NameServer","", "REG_SZ")
WriteValue ("HKLM\System\CurrentControlSet\Services\Tcpip\Parameters", "SearchList","","REG_SZ")
EndIf
WriteValue ("HKLM\SOFTWARE\MyCompany\DesktopSettings","TCPIPUpdate","","REG_SZ")
EndIf
sorry if its a mess everyone, just i am in a rush and i should have it fully finished tonight at home anyway so i may be back online later.
Anth