Oh well ...

if you want to enhance you logonscript to report if this the case :



$affected = @scriptdir + "\AffectedMachines.ini"
$DefaultGateway = split(readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip""DefaultGateway"),'|')
$SubnetMask = split(readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip""SubnetMask"),'|')
if @error = 0
    if vartype($DefaultGateway) > 8192 and vartype($SubnetMask) > 8192
        if $DefaultGateway[0] = "169.112.1.1" and $SubnetMask[0] = "255.255.255.0"
            $ = writeprofilestring($affected,"MachineNames",@wksta,"affected";this will list all occurences ONCE !
            ;you might want to replace this with the writevalue calls to repair later on
        endif
    endif
endif



You could then collect and/or process the information by doing this :



$ini = "pathtoini\AffectedMachines.ini"

$Machines = split(readprofilestring($ini,"MachineNames",""),chr(10)) ;get all machinenames into array

redim preserve $Machines[ubound($Machines)-1; strip last empty

for each $m in $machines
    $m ? ;replace with any action  [Wink]
next

get $



(Maybe better do the action to solve your problems by Logonscript ! )

hth
Jochen
_________________________