how to add route with patch file

Posted on 2010-01-04
Medium Priority
Last Modified: 2012-05-08
i run server 2003 Domain Controller
all client run XP sp3

Q1- I've written patch file to adding route to all computer in the domain
       i open notepad and write the command :

route add mask metric 3 -p

and saving the file with bat extension .. ok

i linked this file by group policy with selected OU
>>users config.
>>>>Windows settings
>>>>>>scripts (logon-logoff )
and i discover this policy cannot adding any route to my client

i need to add this route to all client by using policy

Question by:ab0_feras
  • 2
  • 2
LVL 59

Expert Comment

by:Darius Ghassem
ID: 26174348
LVL 31

Expert Comment

by:Henrik Johansson
ID: 26174512
User nead to be member of local administrators group to have the necessary privileges for executing the command.

Author Comment

ID: 26175767
thank u  dariusg for replaying ,  i follow up the same steps

henjoh09 :

If the users authority prevent the script , How can we apply the script on the client pc regardless of the powers of users
LVL 31

Accepted Solution

Henrik Johansson earned 2000 total points
ID: 26175957
Move it to be a startup script under 'computer configuration' and re-link the GPO to OU containing the computer objects to let it run in system context.

Author Closing Comment

ID: 31672593
thank u henjoh09 , its work ok
best regard

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question