[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Windows 2003 startup script

Posted on 2010-09-16
5
Medium Priority
?
510 Views
Last Modified: 2012-05-10
Say, there are routes added on boot of the server. What possible places are there for them to be added at boot time?
I wish to run a bat file on boot to add route, how can I do this?
It must be run even if no one logs into server.
If I add route -p Will this remain on future boots?
0
Comment
Question by:shaunwingin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:jhill777
ID: 33695921
You can do it via login script or put in the startup but that won't take effect until somebody logs in.  The static routes created should stick for future boots after that though.
0
 

Author Comment

by:shaunwingin
ID: 33695992
How does one run a script that will take effect at boot automatically?
0
 
LVL 5

Expert Comment

by:jhill777
ID: 33696132
Edit the registry is one way.   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Create a new string value and point the value to the script.
0
 

Author Comment

by:shaunwingin
ID: 33696217
Any other way as trying to find this route file at boot?
0
 
LVL 5

Accepted Solution

by:
jhill777 earned 2000 total points
ID: 33696271
Installing the AutoExNT Service
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.
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.
At a command prompt, type instexnt install, and then press ENTER.
You should then receive the following message:
CreateService AutoExNT SUCCESS with InterActive Flag turned OFF
To view the installation processes running on the desktop, you must install the AutoExNT service using the /interactive switch. For example, instead of typing instexnt install, you would type instexnt install /interactive at a command prompt, and then press ENTER.

NOTE: If you use the /interactive switch, any users who log on locally are able to stop the processes from running.
Back to the top
Testing the AutoExNT Service
To 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 Startup
To configure the AutoExNT service to run at startup:
Click Start, point to Programs, point to Administrative Tools, and then click Computer Management.
Double-click the Services and Applications branch to expand it, and then click Services.
Double-click the AutoExNT service, click Automatic in the Startup type box, and then click OK.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question