Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

4 Answers 4

up vote 8 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.

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"

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

 
discard

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.