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

I need to run a custom script which runs when Windows boots up.I know its possible to run it when a user logs in but I want to run it when the system reboots i.e. prior to a user logging in. The OS in question is Windows 2003 and Windows 2000

share|improve this question

You can use a Group Policy (or the local policy) to assign a startup script; you can configure it in the section Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown).

You can also use Scheduled Tasks to configure a task to run at computer startup.

share|improve this answer

Run some kind of widnows Services which run just after systems starts.

share|improve this answer

Startup script in Computer Setting in group policy?

share|improve this answer

I guess I found the answer here.

I will try it and tell if it works

share|improve this answer
Wrong. HKXY\Software\Microsoft\Windows\CurrentVersion\RunX keys, as well as the Startup folder(s), are processed by at user logon. If nobody logs in, your program will not be executed. You should use Scheduled Taksks or a policy. – Massimo Feb 24 '10 at 7:19

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.