Demystifying the AutoExNT tool in the Windows Server 2003 Resource Kit

Requires Free Membership to View

More Windows Server 2003 Resource Kit Tool information

Review this guide to the Microsoft Windows Server 2003 Resource Kit Tools.

Learn more about the Acctinfo.dll tool in the Windows Server 2003 Resource Kit.

Do you have a question about Microsoft's Windows Server 2003 Resource Kit tools? Ask our systems management expert, Tim Fenner.
Microsoft's Windows Server 2003 Resource Kit Tools are a set of tools to help administrators streamline management tasks such as troubleshooting operating system issues, managing Active Directory, configuring networking and security features, and automating application deployment.

One of these tools, the AutoExNT Service, runs a batch file named autoexnt.bat without you having to log onto the system. To run a batch file automatically at startup (to map drives, install printers, copy files or start an application), you'd typically use the Windows Startup folder, logon scripts or Scheduled Tasks. These are all viable options that will handle most of your startup needs.

But what if your batch file or task needs to start in a certain order (because it is dependent on another process, service or application), and you want it to run before you have to log onto the system? This is where AutoExNT comes into play.

Installation of AutoExNT

  1. Using a text editor such as Notepad, create a batch file named Autoexnt.bat. Include the commands you want to run at startup in this file, such as copy files or start an application.
  2. Copy the Autoexnt.bat file you just created, the Autoexnt.exe, Servmess.dll and Instexnt.exe files (in the Resource Kit) into the %SystemRoot%\System32 folder on your computer.
  3. To install the service, open a command console and type: instexnt install.

Use of AutoExNT

  • To test AutoExNT, open a command console and type the command net start autoexnt. You should see Autoexnt.bat file execute.
  • Configure your service options by clicking Start-->Program Files-->Administrative Tools-->Computer Management-->Expand Services and Applications -->click Services. Double-click the AutoExNT service

  • Select Automatic in the Startup type box.
  • Use the Logon As property if your autoexnt.bat file requires specific privileges to run its commands.
  • If necessary, set any dependencies that AutoExNT should wait for before starting. This is handy if your application or task requires another service, such as the Workstation service, to be running before it can execute.

There is one issue with AutoExNT: It does not normally work well with applications that have interactive consoles.

About the author: Tim Fenner (MCSE, MCSA: Messaging, Network+ and A+) is a senior systems administrator who oversees a Microsoft Windows, Exchange and Office environment. He is also an independent consultant who specializes in the design, implementation and management of Windows networks.

This was first published in August 2007

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.