Four ways to stop a shutdown or reboot

Michael PietroforteMVP By Michael Pietroforte - Thu, October 7, 2010 - 7 comments google+ icon

Michael Pietroforte is the founder and editor of 4sysops. He is a Microsoft Most Valuable Professional (MVP) with more than 30 years of experience in system administration.

Articles in this series

Restart Management

The number of reasons for Windows reboots has decreased considerably over the years. But, sometimes, it seems odd to me that operating systems still have to reboot at all. I think, the rise of tablets will force system developers to rethink this weakness. Until then, we have to shut down and reboot our computers at least every now and then.

The problem is that “now” is usually the wrong time from the user’s perspective, and sometimes Windows insists that “then” is too late. There are many reasons why Windows can initiate a restart without user consent, including during the processing of automatic Windows updates or when an updated application just wants to be sure that everything will work properly. Or perhaps you just initiated the shutdown at the moment your boss calls to ask for some important data and you want to stop it.

I know of four ways to stop or prevent shutdowns and reboots:

1. Click the clock

If you are sitting in front of the PC and recognize that one application window after the other magically closes without your intervention, then you have to be very quick to convince Windows that “now” is not “then.” This can be done by clicking the clock in the systray to change the date to a time in the past. This makes Windows believe that “now” is still in the future and so it stops the shutdown or reboot process. The problem with time machines is that they need a lot of energy and, in this case, a lot of speed to be put into action. If you only have a few applications open for Windows to close, you will see the “Shutting down…” message before you even had the chance to click the calendar.

Stop shutdown - Click the Clock

2. Shutdown -a

The “click the clock” trick is not the official way to cancel shutdowns. An alternative is to open a command prompt and type “shutdown -a”. However, only a young PowerShell geek who doesn’t have arthritis in his fingers yet would be fast enough for that. To be prepared for the future, you can just create a Windows shortcut and use the “shutdown -a” command as the “location of the item.” If you copy this shortcut to the quickstart bar or to the Windows 7 taskbar, then you can stop a shutdown with a single click in the future.

3. Shutdown Event Tracker

Click the clock and shutdown -a only help if you are currently working on the PC. Besides, only John Wayne in his early days would have been fast enough to always win the duel with Windows. For seasoned admins like me, it makes sense to activate the Shutdown Event Tracker. If this setting is enabled, Windows will always display the Shutdown Event Tracker dialog before it actually shuts down the computer. You probably know this feature from Windows Server; enabling this GPO setting will activate it for Windows clients as well. This means an extra click to shut down Windows, but, at least, you will always have enough time to load your rifle and pull the trigger when you are ready. The corresponding Group Policy setting to activate the Shutdown Event Tracker can be found here: Computer Configuration\Administrative Templates\System\Display Shutdown Event Tracker.

Stop Shutdown - Windows Shutdown Eventtracker

4. ShutdownGuard

If you don’t want the Shutdown Event Tracker to ask for a reason every time you reboot, then you might be interested in ShutdownGuard. This tiny free tool sits in the systray and can be enabled or disabled with a mouse click. If enabled, it will prevent every shutdown. In Windows XP, ShutdownGuard displays its own warning message in the systray; in Vista and Windows 7, the integrated new shutdown warning dialog appears. You can then either cancel the shutdown or just click “Force shut down”.

Stop shutdown - ShutdownGuard

Do you know of another way to cancel or prevent shutdowns?

Series Navigation - Prevent restarts triggered by third-party applications

-1+1 - Rate this post
Loading ... Loading ...
Your question wasn't answered? Ask in the new 4sysops forum!

7 Comments- Leave a Reply

  1. Tilman says:

    Hi,

    How about (temporarily) disabling the Windows update service (ie. “net stop wuauserv”)? This even helps when you already see the countdown timer for automatical reboot.

    Regards,
    Tilman

  2. This is interesting. But I guess this only works for restarts that were initiated by Windows Update.

  3. Mohit Bharatwal says:

    Hi Michael,

    can we install shut down guard in windows server 2008 enterprise?

    thanks much!

  4. Dejan says:

    Hi Michael

    But I think, that you can set, that the server does not reboot when updates are deployed directly into GPO. I solved this problem by placing servers into diferent groups, than set client side trigering, created OE in put special GPO to that unit. The server only reboots when no user are not loged on.

  5. Mohit, ShutdownGuard also works with Windows server versions.

    Dejan, yes, there are such GPO settings. I will cover automatic restarts because of Windows Update next week.

  6. leonard says:

    everytime i go to document and try to open it .documents shut down what can it be.

  7. R1 says:

    I suggest changing “magically” to “automatically”

===Leave a Comment===

Login

Lost your password?