The Machines vary from Windows NT to Windows 2000. I was thinking of getting an IP address breaking it down to the 4 octets and then taking the last Octet value compare it to a number and if that number is equal to or less than the gateway I want it would modify the registry to enter the desired gateway. Something like IF $IP4 <= 62 then write $IP1.$IP2.$IP3.60 as the default gateway. The only problem I have with that is if the subnet masks changes Then the above statement won't alway hold true.