Article ID: 243486 - Last Review: February 28, 2007 - Revision: 3.5 How to Run a Batch File Before Logging on to Your ComputerThis article was previously published under Q243486 On This PageSUMMARY
Windows 2000 can be configured to run a startup script that is a batch file, VB script or JScript by using Group Policies. These policies can be either domain wide or computer-specific local policies. The AutoExnt utility is included in the Resource Kit so that this functionality is available when you are running a Microsoft Windows NT 4.0-based workstation in either a Windows 2000 or Windows NT 4.0 domain.
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. This article explains how you can accomplish this task. Also, this service may be used when you are not implementing policies. Either a group policy or an individual computer policy can be used to implement a computer based startup script. MORE INFORMATIONInstalling the AutoExNT Service
CreateService AutoExNT SUCCESS with InterActive Flag turned OFF
NOTE: If you use the /interactive switch, any users who log on locally are able to stop the processes from running. Testing the AutoExNT ServiceTo test the AutoExNT service, log on to your computer with an account that has administrator credentials, type net start autoexnt at a command prompt, and then press ENTER. The Autoexnt.bat file should run in an MS-DOS window.NOTE: The AutoExNT service includes a /interactive switch, analogous to the /interactive switch of the AT command. This switch permits you to view the status of processes as they run. Because no user environment variables have yet been declared when AutoExNT runs at system startup, you must use full path names. Also, if you need a service to be running before you start running a dependent process, you may include a command to start this service at the beginning of your Autoexnt.bat file. For example, if your batch file has commands that require the Server service to be running, include a net start server command at the beginning of your Autoexnt.bat file. Configuring the AutoExNT Service to Run at StartupTo configure the AutoExNT service to run at startup:
REFERENCES
This tool is included in the Microsoft Windows 2000 Resource Kit Toolbox.
| Article Translations
|

Back to the top
