Troubleshooting: Windows Won’t Shutdown or Restart
October 27th, 2008Guest post by Aseem from HelpDeskGeek.com
Have you ever clicked on the Shutdown or Restart button in Windows and have absolutely nothing happen? Sometimes Windows gets stuck because of some process that has become hung, meaning it is running, but can’t be ended in the normal way.
Hence, you try to shutdown or restart your computer, nothing happens at all. If you’re lucky, after a minute or two, you might see a message pop up saying that a process is hung and you can either let Windows try to end it or you can press End Now. I always prefer End Now!

Unfortunately, sometimes Windows simply refuses to shutdown and it won’t give you any kind of message. Don’t worry, the underlying cause of this is still a hung process, so all you need to do is kill the non-critical Windows processes one by one or modify the registry so that a hung process is automatically ended without manual intervention. I’ll explain both methods.
Kill Windows Processes Using Task Manager
If you want to figure out exactly which process is preventing Windows from shutting down properly, then you need open the Task Manager and start ending processes one by one. To open the Task Manager, press CTRL + ALT + DEL and press the Task Manager button.

You can also press CTRL + SHIFT + ESC and the Task Manager will start up automatically. Click on the Processes tab and press the User Name column header to sort the processes by user.

Now beginning ending each process that has a user name that matches the current user name of the Windows account you are logged into. Do not kill the Local Service, Network Service or System processes. Those are usually not the cause of the hang. Once you kill the process that is holding up the shutdown process, Windows will be begin shutting down immediately, so make sure you remember the name of each process before killing it.
If you’re not completely comfortable with the Task Manager, be sure to read my introduction to the Task Manager at my other tech site. Once you’ve figured out the process name, uninstall that program or repair it. You can also search on Google for the process name if it is not something obvious like Safecfg.exe, etc.
Automatically Kill Processes via Registry
You can also modify a registry key so that Windows will automatically kill any process that is hung. This will ensure Windows will shutdown or restart when you ask it to. Open the registry by clicking on Start, then Run and typing in regedit.

Navigate to the following registry key:
HKEY_USERS\.DEFAULT\CONTROL PANEL\DESKTOP
In the right hand pane, double click on AutoEndTasks and change the value from 0 to 1.

Now simply reboot your machine and hung processes will be ended automatically when you restart or shutdown your computer.
NOTE: Whenever modifying any keys in the Registry, be sure to make a backup of the entire Registry in case something goes wrong.
This is a guest post by Aseem Kishore, the lead blogger for HelpDeskGeek.com, which focuses on providing Help Desk tips to IT Professionals. If you have some tips to share with our readers, you can write a guest article here.









Ah, the fun of regedit, the Task Manager, and other joys of Windows. You did a great job explaining how to avoid the other solution (press the power button until the system resets, then reboots). In my experience, most people do more harm than good when they launch Regedit, but that’s just one person’s view.
I would suggest more users have hard drive issues usng your method. By default, holding the power button will tur the system off. Then commonly people boot it back up before the disk spins down. A voila, new HDD required.
Just one persons view
I dont understant , why people dont start using Linux where processes are handled quite well by kernal.
i have number of trouble shooting.when i on my computer is not booting and display is not coming what the problem.how to solve this problem please response me soon and i have abother problem when is install a audio drivers my system is restarting.how to install audio drivers and no restart problem please response me soon.sorry for my english is not good
Did it work previously?
If so, try booting with “last known good configuration”
This should use the previous driver.
If this not the case, then try pressing F8 just before the windows loading screen on boot, and select safe mode. Then install the drivers.
Because Linux sucks… understant better now?
Thanks! That helped a lot. I had a process running that was preventing it from shutting down even though I clicked shut down and restart.
Solved.
-Matt
Great advice! Worked perfectly, just not sure how to backup registry. However I did the process through task manager, and without any problems it fixed everything straight away. Able to restart and shutdown without a problem. Thanks so much for your advice… I’m pretty smart with computers but I couldn’t wrap my head around this one. You were the only person to offer no nonsense clear advice. I will be sure to check here first with any other problems that may arise in the future. Thanks heaps. Much apprecieted!
tried the process through task manager but user entries just wouldnt delete.
i’m on vista and it doesn’t shut down, restart, or log off. It will either display the message “logging off” or “shutting down” for eternity–it doesn’t end. I left it there for 5 hours and it wouldn’t log off. When i click restart it just goes to the blue and green background with windows vista business written at the bottom, and stays there. I had music playing when i clicked restart, and the music is still playing. Even when i don’t have music playing, it wont do the 3 things above. On top of all that, it’s not showing me a message to kill any ‘hung’ process, because it’s not at the desktop. It’s ‘halfway’ between restarting and not restarting. This is getting on my ******* nerves.