Add Static routes on XP/2000 via win 2003 domain policy

If you're new here, you may want to subscribe to our RSS feed. Thanks for visiting!


If you have a win 2003 domain with 200 clients.50 clients are in a different network subnet that is separated by a router and they should have 2 default gateways set up for them as well as a static route.

The routes you need set up are similar to the following

for network 0.0.0.0 0.0.0.0 gateway 192.168.7.1 metric 1
for network 0.0.0.0 0.0.0.0 gateway 192.168.6.1 metric 10
for network 192.168.8.0 255.255.255.0 gateway 192.168.6.1 metric 1

how can you add these routes to only 50 clients so that these routes are always present in their routing tables

Solution

First you need to Make .cmd or bat file with following routes

@Echo Off
ROUTE ADD -p 0.0.0.0 MASK 0.0.0.0 192.168.7.1 metric 1
ROUTE ADD -p 0.0.0.0 MASK 0.0.0.0 192.168.6.1 metric 10
ROUTE ADD -p 192.168.8.0 MASK 255.255.255.0 192.168.6.1 metric 1
Exit

You can use the ‘LOGON’ and ‘LOGOFF’ scripts in Group Policy to apply static routes to specific USERS (and remove them if necessary when users logoff).

User Configuration –> Windows Settings –> Scripts” for Logon/Logoff user events.

If you want to apply the policies to specific COMPUTERS (instead of users) then use the ‘STARTUP’ and ‘SHUTDOWN’ scripts which again can be found in group policy objects.

Computer Configuration –> Windows Settings –> Scripts” for Startup/Shutdown user events.

Related Articles


Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

No comments yet.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)