When Windows Won't Shut Down

  • Section(s): Miscellaneous
  • Published on Jul 04, 2006.
  • Last Modified on Jul 04, 2006.
  • Last Modified by Mitch Tulloch.
  • Rated 3.6 out of 5 based on 30 votes.
How to automatically kill hung processes when you try to shut down Windows.

Sometimes Windows gets itself in a huff and won't shut down properly for some reason. You try to shutdown your system and nothing happens for a while, and then a dialog appears telling you that a task won't shut down and you can press End Now if you want to end it now, or you can wait for Windows to try and end it itself. Well you can avoid that hassle by making a simple registry tweak (but remember to backup your registry before editing it!). Here's how:

1. Open Regedit and navigate to HKU\.Default\Control Panel\Desktop

2. Double-click on AutoEndTasks

3. Change the value from 0 to 1

4. Reboot your machine

Now hung processes will end automatically when you try to shutdown or reboot your machine. One caveat: a hung process means something is wrong, and anytime you kill a hung process (whether manually or automatically) you risk possible data loss.

Cheers, Mitch Tulloch

About Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Anti Spam Hardware solution?

Follow TechGenix on Twitter