Raymond.CC Blog
  • Home
  • Forum
  • Giveaway
  • X-Ray 2.0
  • Contact
  • About
  • I’m Feeling Lucky
Search the site...
You are here: Home » Computer » Prevent, Cancel and Abort a Windows System Shutdown or Restart when Application is Running

Prevent, Cancel and Abort a Windows System Shutdown or Restart when Application is Running

Updated by Raymond - 1 year ago - Computer
9
  • Like
  • +1
  • Tweet
  • Printer Friendly and PDF

Correctly shutting down a Windows computer is very important. One error that is common to new computer users is turning off the computer without saving your documents and closing the applications. They just turn off the power switch and that can be dangerous to your work and your hard drive!
No shutdown
To correctly shutdown a computer, click on the Start button, click Shut Down and then select Shut down from the list and click OK. However, there are times we want the computer to be turned on because some important programs are running. Here are a few example scenarios. If you use multiple desktops and VMWare, you wouldn’t want to shutdown while leaving the VMware session running in the background. You can also prevent the user from shutting down it’s PC while a backup is running and also prevent shutting down while Windows updates or service pack is installing.

I found a total of 3 free tools which is able to give the computer user a “last chance” before shutting down by preventing the user from inadvertently shutting down their PC.

1. Shut It
Prevent Computer Restart with Shut It
Shut It is a shutdown monitor. In essence it monitors system shutdown requests via the WM_QUERYENDSESSION windows message. When it detects a shutdown, it will temporarily stop the shutdown until user interaction or a timeout period has elapsed. Shut It runs from a small icon in the system tray (beside the clock if visible).

During a Shutdown request, Shut It will scan (most of) the system process names and window titles. If any of these match existing user defined matches the system will perform the Shutdown Check detected Action (Do Nothing, Cancel the Shutdown, Show Warning Dialog, Abort on Timeout, Continue on Timeout, Hibernate on Timeout, Standby on Timeout). Otherwise the system will perform the No Shutdown Checks detected action. Here is how a shutdown warning notification looks like.
Shutdown warning

You can even schedule a Windows shutdown with Shut It. A Scheduled Shutdown allows you to specify a time in minutes or a specified time to attempt a system shutdown (or logoff, hibernate or suspend). Additionally you may specify an idle timeout. If you do, the idle timeout is only checked after the Scheduled Shutdown (timer) has triggered. For instance if you register a Scheduled Shutdown for 30 minutes and an Idle Timeout of 10 minutes, the idle count will only start once the 30 minute timeout has expired. Subsequently the idle timeout will stay active until it executes or is cancelled.

Shut It works only in Windows 2000 and Windows XP. The author of Shut It plans to upgrade to a new version in the foreseeable future, and subsequently test Shut It on Vista.

[ Download Shut It ]

2. Shutdown Monitor
Shutdown Monitor uses a fairly simple trick to prevent the user from inadvertently shutting down their PC. After you start shutdown monitor, it tells windows that it was one of the first programs that was started on the PC, so it will be the first notified if a user initiates a shutdown, reboot, log off etc. When it receives the shutdown notification it checks to see if the program you want the user to interrupt is still running, if it is, it pops up a message box and tells the user why they can’t shutdown and halts the shutdown process. (Logging off and Shutting down the PC is temporarily disabled during software installation. Shutting down before the installation is complete would damange the computer. Thank you for your patience.)

Shutdown monitor doesn’t have an interface to the program and configuration is done using command. To Prevent the computer from shutting down while a process is running, use the following:

"shutdown monitor.exe" file.exe

To stop Shutdown Monitor from monitoring or removing from memory, you can either end the task in Windows Task Manager or use the command "shutdown monitor.exe" quit

[ Download Shutdown Monitor ]

3. LastChance
Last chance before shutting down computer
LastChance is a desktop utility that provides the facility to run programs when the machine is shutting down. Once the user chooses Shutdown from the Start menu, LastChance will intercept the shutdown request and optionally run the configured programs, waiting for them to finish before continuing the shutdown procedure.

LastChance can also run programs when it detects that a resource has become available. This facility can be used in a variety of situations. Particularly, it allows programs to be run when a notebook is docked . See How to configure programs to run on resource availability. Additionally, LastChance can be configured to automatically shutdown a system at a specified time of day.

Works on Windows 95 to Windows XP. This tool is REALLY old (released 10 years ago on July 1998). This tool is slightly different than the first two tool above but it is related. It doesn’t prevent or cancel the shutdown but it allows you to run a program or command before shutting down.

[ Download LastChance ]

4. ShutdownGuard
ShutDown Guard
ShutdownGuard prevents Windows to shutdown, reboot or log off. When it prevents a shutdown it will pop up in the tray and ask you if you want to continue. ShutdownGuard can even prevent the Windows Update prompt from rebooting your computer. Not tested in Vista.

[ Download ShutdownGuard ]


Didn't find what you want? The links below could help:

Disable UAC for Specific Software in Windows 7 with UAC Trust ShortcutDisable UAC for Specific Software in Windows 7 with UAC Trust ShortcutWhy Are You Asked to Restart After Install or Uninstall Software?Why Are You Asked to Restart After Install or Uninstall Software?Test the Effectiveness of Your Antivirus, Firewall and HIPS SoftwareTest the Effectiveness of Your Antivirus, Firewall and HIPS SoftwareFix Windows Live Messenger Not Remembering ID and PasswordFix Windows Live Messenger Not Remembering ID and Password

9 comments on “Prevent, Cancel and Abort a Windows System Shutdown or Restart when Application is Running”

  1. li says:
    2 years ago

    Well, to answer my own question:
    These threads: autohotkey.com/forum/topic26304.html & autohotkey.com/forum/topic61018-30.html have some interesting ways to use a tool called AutoHotkey to intercept the shutdown with a script.

    Not very user friendly and it takes some time to get into, but it did the job for me. Hope it helps someone.

    Reply
  2. li says:
    2 years ago

    I’ve been looking for a tool exactly like LastChance, but I need it on a Windows 7 box and it won’t install even under compatibility mode.

    Do you know of any similar tools that could run a certain program or script before continuing the shutdown process?

    Reply
  3. mada says:
    2 years ago

    buna! am si eu o pb cu pc cand il inchid sub turn off si celelalte 2 sub astea imi apare urmatoarea chestie : click turn off install important updates and turn off your computer.click here to turn off without instaling updates…ce as putea sa fac sa scap de ea ?! astept raspuns…multumesc !

    Reply
  4. Nick says:
    4 years ago

    Hi,
    I run a script at 6pm every night(at a school) to shutdown all computers, i would like to give the user the option to abort the shutdown, i like the Shut It “shutdown warning” is it possible to only use that dialog? Then make it shutdown after 60 seconds if nothing is pressed? or is there a better application for what i want?
    Cheers

    Reply
  5. Darren Davis says:
    4 years ago

    Thanks for the referral to Shut It Raymond. FYI: I’ve now added Windows Vista support.

    Reply
  6. Genius says:
    4 years ago

    thanks man, very useful .

    Reply
  7. jeff parker says:
    4 years ago

    hmmm…look good..thanks ray!

    Reply
  8. salty says:
    4 years ago

    I have a Windows Vista computer shared with other users. Is there any way or program that can actually stop all non-admin users of the computer from shutting down the computer at all, whilst other users are still running other programs. Unfortunately, none of the above programs seem to do so. Any suggestions?

    Reply
  9. Ibrahim Rabbani says:
    4 years ago

    You could alternatively cancel a System Error shutdown (the one that you can’t shutdown because its either triggered by a critical error or a virus)

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recently Updated

  • safemode uninstall icon

    Uninstall Programs Packaged with Windows Installer (MSI) in Safe Mode

  • packet error icon

    Detect Packet Errors in Your Network LAN Connection Status

  • hex to text icon

    4 Tools to Decode and Convert Windows Registry Hex Values to Text

New Articles

  • task manager replacement icon

    Memory Usage Test to See Which is the Lightest Antivirus Software

  • kaspersky antivirus 2013 icon

    Activate Free Kaspersky Anti-Virus 2013 ROG with 1 Year License

  • remote access software

    Top 8 Remote Access Software for Providing Online Support

Popular Posts

  • Top 10 FREE Data Recovery Software

    Top 10 FREE Data Recovery Software

  • How to Hack Into a Windows XP Computer Without Changing Password

    How to Hack Into a Windows XP Computer Without Changing Password

  • 10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

    10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

Recommend on Google
Follow @raymond_cc
Subscribe Youtube »
(c) 2013 Raymond.CC Blog
  • Contact
  • Disclaimer
  • Disclosure
  • Privacy Policy
  • Terms of Use
  • Sitemap