Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

When the server restarts, I need to kick off a process in a form of a batch file (that basically preloads a bunch of data that will be needed later).

I haven't found an effective way to do this (other than write a Windows service). Am I missing something simple?

share|improve this question
Is this for 2003, or 2008? I am almost certain the 2008 task manager can do it, not sure about 2003 though. – Zoredache Feb 23 '12 at 20:35
up vote 10 down vote accepted

You want to use a startup script for this. The link provided is for a logon script, but the process is the same for a startup script. You just configure it in Computer Policies instead.

If you don't have Group Policy available, or don't want to manage it there, the steps are the same to configure this in the Local Policy.

You'll either use the Group Policy Management Console or the local gpedit.msc to configure this policy:

enter image description here

share|improve this answer

If it is Windows 2008, or 2008 R2, the task Scheduler has a trigger for "At startup".

enter image description here

If an earlier version of server, you may be able to use the HKLM/Software/Microsoft/Windows/Currentversion/Run key to launch a process (not recommended)

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.