how to add route with patch file

Posted on 2010-01-04
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
    LVL 59

    Expert Comment

    by:Darius Ghassem
    LVL 31

    Expert Comment

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

    Author Comment

    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

    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

    thank u henjoh09 , its work ok
    best regard

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now