Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I run a bat file at startup in Windows 2008?

share|improve this question
up vote 12 down vote accepted

Windows Scheduler -- When my computer starts

I'm pretty sure you can the built-in Windows Scheduler to execute your batch file on startup.

Try this:

Start > Programs > Accessories > System Tools > Scheduled Tasks

Select the location of your batch file and on the next page select "When my computer starts".

You may also want to move it to somewhere OTHER than the startup folder to avoid "weirdness".

Good luck!

share|improve this answer
If the computer is a member server in a domain you can also do this through Group Policy, but I am assuming you would have said that if it were true. – Catherine MacInnes Nov 16 '09 at 22:59

In previous versions and I am going to assume still in Windows 2008 you can set a scheduled task to be run "when the computer starts" instead of at a specific time.

Just checked a test Windows 2008 machine of mine.

Run Task Scheduler from the start menu search box. Choose Create Basic Task on the right. On the trigger selection, you will have choices for "When the computer starts" and "When I log on"

share|improve this answer

Place the batch file into the 'Startup' folder for the user. Or do you want to run it before the user signs in?

share|improve this answer

Fire up an mmc, add it local computer policy settings snap-in and in Windows settings/Scripts put your startup script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.