9

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

5 Answers 5

21

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!

1
  • 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. Nov 16, 2009 at 22:59
2

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"

0

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

0

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

0

Run a batch file at loading of Windows 8 and 10 and windows server 2016.

  1. Create a shortcut to the batch file.
  2. Once the shortcut is created, 'right-click' the shortcut file and select Cut.
  3. Press Start on the keyboard, type Run, and press Enter.
  4. In the Run window, type shell:startup to open the Startup folder.
  5. Once the Startup folder is opened, click the Home tab at the top of the folder. Then, select Paste to paste the shortcut file into the Startup folder.

I hope is useful.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .