March 24, 2008 12:01 AM PDT

Shut down Windows in an instant

The other evening I turned off my Windows XP system and busied myself with other matters, only to find the machine churning away several minutes later as it worked through its shutdown process. I could've understood the delay if it were installing updates, or even if some program or service had hung the system. But this was a typical PC shutdown, and it was taking forever.

"There's gotta be a better way," I thought, and after doing a little research, I found a bunch of Registry tweaks that reset Windows to close shop like it's late for the bus ride home. Keep in mind, any changes to the Registry can be troublesome, so you may want to make these alterations one or two at a time just to make sure they don't futz up the works (it'll also be easier to diagnose any problems that may arise). And for sure back up the Registry by creating a restore point before you begin.

Kill your apps
Some programs just don't know how to say goodbye. To speed up force-closing them at shutdown, open the Registry Editor (in Vista, press the Windows key, type regedit, and press Enter; in XP, click Start > Run, type regedit, and press Enter), and navigate in the left pane to HKEY_CURRENT_USER/Control Panel/desktop (or Desktop). Double-click WaitToKillAppTimeout in the right pane, and change the value data (measured in milliseconds) to 1000-if you're in a real hurry--or something larger, if you want to give your recalcitrant apps a little more time to call it quits. Click OK when you're done.

The Windows Registry key that sets the delay before killing applications at shutdown

Use this Registry key to reduce the number of milliseconds you want Windows to wait before killing apps at shutdown.

(Credit: Microsoft)

To reduce the wait before forcing hung applications to close, double-click HungAppTimeout in the right pane of the same key, and change the value data to 2000, or however many milliseconds you want to give the apps to unhang on their own. Of course, a better approach is to figure out why the app is hanging in the first place; I'll cover diagnosing hung applications in a future post: Stay tuned!

You may also want to change the value data of WaitToKillAppTimeout and HungAppTimeout in HKEY_USERS/.DEFAULT/Control Panel/Desktop key to apply the changes to all users on the system.

Clip your running tasks and services
There's another Registry key that automatically ends running tasks at shutdown. Navigate to HKEY_CURRENT_USER/Control Panel/Desktop, double-click AutoEndTasks in the right pane, and change the value data to 1. Now to whack your slow-ending services, go to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control, double-click WaitToKillServiceTimeout in the right pane, change the value to 1000, and click OK.

Some people will tell you that you can speed up shutdowns by telling Windows not to clear the pagefile when it closes. Unfortunately, this could compromise your system security because sensitive data may be stored in the file unencrypted. There's even some question about whether disabling this setting will save you any time at shutdown. For me, the possibility of saving a couple of seconds on shutdown isn't worth the risk. That's why I recommend that you leave the ClearPageFileAtShutdown value at HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SessionManager/Memory Management at 1.

Some Vista systems (including mine) don't have all the Registry key entries described above. To add a missing entry, right-click in the right pane of its key, choose New > String Value, type the name, such as AutoEndTasks, double-click the new entry, add its value data (1 in the case of AutoEndTasks), and click OK.

Tomorrow: create multiple workspaces in Ubuntu.

advertisement
 
Discover unlimited music for the price of one CD a month
Recent posts from Workers' Edge
New Office 2007 add-on makes commands easier to find
Identify mystery apps installed on your PC
Blip tip: Hide formatting marks in Word
Your one-stop shop for free online PC scans
Roll your own Firefox scripts with Chickenfoot
Add a Comment (Log in or register) 22 comments (Page 1 of 2)
by tjcs March 24, 2008 5:04 AM PDT
- or you could just run a Macintosh OS and not worry about all these time-consuming tasks!
Reply to this comment View all 7 replies
by rcrusoe March 24, 2008 5:40 AM PDT
Many people I know shutdown Windows by holding in the power button for 10-15 or killing the system via a power strip, etc. Their thinking is "screw it, I have to rebuild Windows a couple times a year anyhow." Can't say I blame them, but one of the biggest shutdown problems I've noticed is Microsoft Outlook. If it is closed prior to shutting down Windows it saves a ton of time.
Reply to this comment View reply
by C.Schroeder March 24, 2008 6:27 AM PDT
Do you have Microsoft's User Profile Hive Cleanup Service installed? http://www.microsoft.com/downloads/details.aspx?familyid=1b286e6d-8912-4e18-b570-42470e2f3582&displaylang=en I have found it to be very helpful with speeding up the shutdown of Win2K and WinXP.
Reply to this comment
by wannamac March 24, 2008 9:04 AM PDT
Thanks these registry edits were great. I had no problems with them. You can find all of these registry edits and more in a book call windows hacks it had a lot of good stuff in it like this for speeding up your computer
Reply to this comment
by devans00 March 24, 2008 9:36 AM PDT
I hope this solves my problem. Often, when I go to login, I see that my system has been hung on a "shut down application" confirmation screen since the previous day. So much for smart systems.
Reply to this comment
by March 24, 2008 10:01 AM PDT
Ummm...I AM running a Mac OS X and it takes just as long if not longer to shutdown. So, that blows that theory...
Reply to this comment View reply
by cyberDJ March 24, 2008 11:50 AM PDT
Why does any of this matter? When I shut down my PC, I get up from the desk and go do something else. I don't care how long it's taking to shut down. This is like obsessing over how long it takes your car to cool off after shutting off the ignition. Windows (mainly Vista) has far more serious issues to be dealt with so let's worry about those.
Reply to this comment View reply
by ronjon13 March 24, 2008 8:31 PM PDT
it is called a laptop, lap-top.
Reply to this comment
by Essays March 25, 2008 10:39 PM PDT
Excellent post. I recommend PeerPapers.com for researching. They have over 100,000 term papers and essays available on almost every subject.
Reply to this comment
by netlovers March 28, 2008 9:58 AM PDT
Visit the following link for simple tip for shutting down pc quickly. http://www.thetechpedia.com/2008/03/26/how-to-shutdown-computer-in-5-seconds/
Reply to this comment
1 | 2 | Next 10 Comments >>
Powered by Jive Software
advertisement
  • About Workers' Edge

  • Dennis O'Reilly has covered PCs and other technologies in print and online since 1985. Along with more than a decade as editor for Ziff-Davis's Computer Select, Dennis edited PC World's award-winning Here's How section for more than seven years.

Add this feed to your online news reader
Google
Yahoo
MSN
advertisement
Click Here.
On CHOW: Does drinking ice water burn calories?
Visit other CNET Networks sites: