AutoExNT Service
Version 1.2

Windows NTŪ 4.0 Resource Kits

Contents

Introduction

Requirements

Installing AutoExNT

Testing AutoExNT

Notes

Configuring AutoExNT to run at startup

Introduction

The AutoExNT service allows you to run a custom batch file, Autoexnt.bat, when you start a computer, without having to log on to that computer.

Requirements

To use the AutoExNT service, the computer must be running Windows NT version 3.5 or later.

The AutoExNT service includes the following files:

Autoexnt.exe The AutoExNT service executable file.
Autoexnt.doc This Readme file.
Instexnt.exe The Setup program used to install the service.
Servmess.dll The AutoExNT message file.

Installing AutoExNT

To install the AutoExNT service

1.Copy the Autoexnt.exe and Servmess.dll files into the Systemroot/System32 directory.

2.Using a text editor, create a batch file containing the commands you wish to include, and name it Autoexnt.bat.

3.Copy Autoexnt.bat into the Systemroot/System32 directory.

4.At the command prompt, type:

instexnt install

When installation has completed successfully, the application gives the following response:

>> CreateService AutoExNT SUCCESS with InterActive Flag turned OFF.

To view the installation processes running on the desktop, use the /interactive option. At the command prompt, type:

instexnt install /interactive

Note

If you use the /interactive option, any users who are logged on locally are able to stop the processes from running.

When installation has completed successfully, the application gives the following response:

>> CreateService AutoExNT SUCCESS with InterActive Flag turned ON.

Testing AutoExNT

To test the AutoExNT service, log on as Administrator and type the following command at the command prompt:

net start autoexnt

If the service starts correctly, Autoexnt.bat runs in a command-prompt window.

Notes

AutoExNT includes an /interactive option, analogous to the /interactive option of the at command. This option allows you to view the status of processes as they run.

As no user-environment variables have yet been declared when AutoExNT runs at system startup, you must use full pathnames.

If you need a service to be running, such as the Server or Schedule service, before you start running a dependent process, include a net start service command at the beginning of your Autoexnt.bat file.

Configuring AutoExNT to run at startup

To configure the AutoExNT service to run when you start your computer

1.Double-click Services in Control Panel.

2.In the Services list, click AutoExNT.

3.Click Startup and, in the Startup Type box, click Automatic.

4.Choose OK.

Note

When you need to access an area outside your local system (for example using the net use command), click Logon As: This Account, and specify an account that has adequate permissions on the domain, and provide a password as required.

For questions or feedback concerning this utility, please contact rkinput@microsoft.com.