High Availbility

OS & Virtualization

Friday, December 19, 2008

How to Run a Batch File Before Logging on to Your Computer

Windows server can be configured to run a startup script that is a batch file, VB script. The AutoExnt utility is included in the Resource Kit so that this functionality is available.


The AutoExNT service permits an administrator to configure a Windows 2000-based computer to run a custom batch file when first starting the computer. Also, a user or administrator is not required to be logged on at the time this custom batch file runs.

http://support.microsoft.com/kb/q243486/

Installing the AutoExNT Service

  1. Using a text editor (such as Notepad), create a batch file named Autoexnt.bat and include the commands you want to run at startup in this file.
  2. Copy the Autoexnt.bat file you just created, in addition to the Autoexnt.exe, Servmess.dll, and Instexnt.exe files located in the Resource Kit CD-ROM to the %SystemRoot%\System32 folder on your computer.
  3. At a command prompt, type instexnt install, and then press ENTER.

No comments: