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.
Post a Comment