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

link|improve this question
feedback

4 Answers

up vote 7 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!

link|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
feedback

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.

Update:
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"

link|improve this answer
feedback

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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