Windows – How to run a batch script before the windows Logon prompt appears

scriptingstartupwindows

I'm looking for a way of running a batch script once (and only once) on boot before the Windows XP Logon prompt appears on screen.

What is the easiest way to do this?

Also, I need to be able to run this command before the network has started (or if the network has failed to start).

Best Answer

Use a computer start up script.

You can do this using either local policy editor (standalone PC or on a domain) or group policy editor (on a domain only.)

Navigate to this settings via

Computer Settings > Windows Settings > Scripts > Startup

The script will run as the local system account