XP Pro run command on startup

Posted on 2007-10-05
Last Modified: 2012-05-05
On a small Windows Server 2003 domain, I have a DOS command I want to run on an XP Pro client computer when it starts (not when a user logs in, when the machine starts up). I suddenly realized that it must have been years since I needed to do this, because I know how to add a command to the autoexec.bat file in Win98 to run something on startup, but I have know idea how to do this in XP.

I looked in the AD computer properties for an option to run something at start but found none. I can add something to a users logon script, but that is not what I need at the moment. I need to set a command line command to run at start, then reboot the machine. Is there a folder where I can put a bat file that will kick off on startup?

Question by:westone
    LVL 70

    Accepted Solution

    As you are on a domain you can set it to run as either a startup script - to execute when the machine starts up, or if its related to the user, as a logon script - to execute then the user logs on

    Author Comment

    Thank you! I was not familiar with startup and shutdown scripts.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    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.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    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…

    728 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

    21 Experts available now in Live!

    Get 1:1 Help Now