Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


June 1997

Reader to Reader - June 1997

RSS
Subscribe to Windows IT Pro | See More Migration Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Speeding Up Shutdown
When I needed to restart Windows NT Server, it took a very long time to shut down, and most of this time, the hard disk seemed to be doing nothing. This

situation got worse after I installed Exchange Server on the machine. I noticed that if I used Control Panel, Services to manually stop most of the services, the shutdown process was

substantially faster. Instead of taking up to 20 minutes, a shutdown now takes about 2 minutes. I then wrote the .bat file in Listing 1, page 34, to automate the process. I hope this process saves you as much time and frustration as it has saved me. (You'll find the names in the .bat file under Control Panel, Services. Note that the particular services you'll want to stop will vary from system to system.)

To write this .bat file:

1. Go to the command line, and execute

net start > AllDown.BAT

2. Edit the lines, and add net stop

and a quotation mark at the beginning of each line and a quotation mark at the end of each line.

3. Manually shut down the services one by one, making sure the service does not return any errors. As you're shutting them down, edit AllDown.BAT so that the lines follow the same sequence. (You can use the sequence in Listing 1 as a base.)

4. Remove the services from AllDown.BAT that did not let you shut them down.

5. Remove several key services that you do not want to shut down manually (e.g., Workstation, Server, Computer Browser, Event Log, and Alerter).

Custom Explorer Views
Administrators familiar with Windows NT 4.0's Explorer shell may know that you can click Start and then Run and type in an ordinary or universal naming convention (UNC) path to open Explorer with that path displayed. For example, type

\\myserver\apps

to open up a view of the Apps share on server MyServer.

Not as common, but certainly as useful, is the ability to enter just system, system32, or favorites to open an Explorer view of %systemroot%\system, %systemroot%\system32, or %systemroot%\
favorites, respectively. This tip works for any directory in or for any subdirectory of a directory in your NT system's path. I find this tip pretty useful during day-to-day administration tasks.

Unattended NT 3.51 Installations
Christa Anderson's March article, "Designing Unattended NT Installations," was a good introduction to automated installation with Windows NT 4.0. She explained how NT 4.0 uniqueness database files let you customize an installation for a particular user. Though this approach is great for NT 4.0 users, some of us are still installing NT 3.51 on enough machines to make the unattended install worthwhile. Listing 2 is a simple batch file I made to change one line of an answer file on the fly.

You can install NT 3.51 (or NT 4.0) over the network by running setup.bat from the \winnt40\workstn\i386 directory on the machine SERVER. From the command line, you enter the computer name for the machine you want to install. The files 1.txt and 2.txt are the sections of the answer file before and after the line ComputerName = xxxx. This method should work equally well in NT 3.51, or for any other line in the answer file that you want to change from the command line.

A couple of hints: Make sure your Dynamic Host Configuration Protocol (DHCP) server is up and running while you're not watching an install that uses it, or you'll get stuck when NT tries to start the network and asks whether you want to see further error messages about DHCP. Also, specify the directory \winnt instead of choosing the default, or NT can end up in something like \winnt.0 if you have a previous boot.ini hanging around.

LISTING 1: .BAT file for Automating Manual Shutdown

@echo off
net stop "Microsoft Exchange Directory Synchronization"
net stop "Microsoft Exchange Internet Mail Connector"
net stop "Microsoft Exchange Message Transfer Agent"
net stop "Microsoft Exchange Information Store"
net stop "Microsoft Exchange Directory"
net stop "Microsoft Exchange System Attendant"
net stop "FTP Publishing Service"
net stop "Gopher Publishing Service"
net stop "World Wide Web Publishing Service"
net stop "License Logging Service"
net stop "Microsoft DHCP Server"
net stop "Microsoft DNS Server"
net stop "NT LM Security Support Provider"
net stop "Plug and Play"
net stop "Remote Access Autodial Manager"
net stop "Remote Access Server"
net stop "Remote Access Connection Manager"
net stop "Remote Procedure Call (RPC) Locator"
net stop "Remote Procedure Call (RPC) Service"
net stop "SAP Agent"
net stop "Schedule"
net stop "Spooler"
net stop "Telephony Service"
net stop "Windows Internet Name Service"
net stop "NT LM Security Support Provider"

LISTING 2: Batch File for NT 3.51 Unattended Installation

@echo off
IF "%1"=="?" GOTO HELP
IF "%1"=="/?" GOTO HELP
IF NOT "%1"=="" GOTO START
GOTO HELP
:START
IF EXIST UNATTEND.TXT DEL UNATTEND.TXT
TYPE 1.txt unattend.txt
ECHO ComputerName = %1 unattend.txt
TYPE 2.txt unattend.txt
winnt /s:\\server\winnt40\workstn\i386 /b /u:unattend.txt
GOTO END
:HELP
ECHO.
ECHO USAGE:
ECHO.
ECHO SETUP (WORKSTATION NAME)
:END

End of Article

   Previous  1  [2]  Next  


Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Storage Whitepapers Turn to a Proven Server and Storage Migration Solution

The Impact of Disk Fragmentation on Servers

Take Control of Your Email: Understand the Business Reasons for Email Storage Management

Related Events Disk-to-Disk Grows Up

Deep Dive into Windows Server 2008 R2 presented by John Savill

Think That Intelligent Data Storage Systems Exceed Your IT budget? Think Again!

Check out our list of Free Email Newsletters!

Storage eBooks A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Keeping Your Business Safe from Attack: Encryption and Certificate Services

Related Storage Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement