How to Abort a Windows Shutdown Process That Has Already Started

I have set up a scheduled task on my Windows box that shuts the computer down nightly at a certain time after some other scheduled maintenance completes. The other night though I was still working when the scheduled shutdown took place. I then had to turn the computer back on. After that I looked to see how I could stop a Windows shutdown that had already started.

Fortunately, it is easy to stop an already initiated Windows shutdown. To do so, just type shutdown -a at the command prompt. The problem with this approach is that, while easy, it's not super quick, and time is of the essence. Will you have time to start the command prompt and type in the command? Will you even remember the command?

To make this even easier and quicker, you could do either of the following to make the shutdown cancellation a one-click affair:

Make a batch file
To make a batch file that you can click on to prevent shutdown, start Notepad and type in the following:

@echo off
shudown -a


and save your file with a .bat extension. For example, call it "StopShudown.bat" Put the batch file or a shortcut to it somewhere readily accessible, like on the Quick Launch bar.

Make a shortcut
You can bypass the batch file and just integrate the command into a shortcut. To make a shortcut that will abort an already started shutdown, do the following:

1. Right-click desktop and select New > Shortcut
2. Browse to the location for the shortcut and click Next button.


3. Lastly, name your shortcut and click the Finish button.



Again, for ease of use and speed, I recommend using the batch file or shortcut and placing it in an easily and quickly accessed place so that you can react quickly to a shutdown rather than having to try to start the command prompt and type in the command. This tactic will probably work best for stopping a scheduled shutdown that presents a timer.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.