How can I decrease the time my machine takes to shutdown/reboot?

John Savill

March 4, 1999

2 Min Read
ITPro Today logo in a gray background | ITPro Today

A. A. It is possible to manually shutdown each service (wellsome of them) and then shutdown the machine. To identify which services arerunning enter the command

net start

(you can add > [filename] to the end to make it output to a file, i.e.net start > services.lst). You can then try to shutdown each of them byentering the command

net stop "" ,e.g. net stop"spooler". Some services will ask you to enter a y to confirm, andfor these just add /y to the end. You will be able to build up a list of allthe services that can be manually stopped, and you should put these in a .batfile, e.g.

net stop "Computer Browser""
net stop "Messenger"
.
.
net stop "Workstation"

To the end of the file add the command

shutdown /r /y /l /t:0

to reboot the machine (leave of the /r to just shutdown the machine).SHUTDOWN.EXE is part of the Windows NT Resource Kit. You may also want to add @echo off to the start of the file. You could add a check to accept an input parameter to reboot or shutdown, e.g. save thisfile as shutfast.bat, and call using shutfastreboot, or shutfast shutdown

@echo off
net stop "Computer Browser""
net stop "Messenger"
net stop "Net Logon"
net stop "NT LM Security Support Provider"
net stop "Plug and Play"
net stop "Protected Storage"
net stop "Remote Access Autodial Manager"
net stop "Server"
net stop "Spooler"
net stop "TCP/IP NetBIOS Helper" /y
net stop "Workstation"

if %1==reboot goto reboot
shutdown /l /y /t:0
exit
:reboot
shutdown /l /y /r /t:0
exit

You could add a shortcut on the desktop for this batch file with therelevant parameter.

You can also decrease the time NT waits for a service to stop beforeterminating it by performing the following:

  1. Start the registry editor (use regedt32.exe notregedit.exe)

  2. Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl

  3. Double click on WaitToKillServiceTimeout (REG_DWORD) and change to thenumber of milliseconds after the logoff/shutdown before displaying the Wait,End Task and Close dialog box, e.g. 10000 for 10 seconds, the default is 20000

  4. Add HangAppTimeout (REG_DWORD) and change to the number of milliseconds towait before displaying the Wait, End Task and Close dialog box after trying toclose an application.

  5. Add AutoEndTasks (REG_DWORD) and change to 1 to avoid the dialog asking toWait, End Task and Close.

I have been informed of an application TrapSD fromhttp://www.pyzzo.com which helps closeapplications at shutdown.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like