Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sometimes I want to choose "Logout current user", but then I hit "Shutdown" by accident.

Nearly everywhere else Windows 7 is asking "do you really want to do this? Yes/No" - but that's not the case when I hit the "Shutdown" button. Windows 7 shuts down immediately without giving me the chance to correct my mistake.

So I am wondering - why does Windows shut down immediately without asking "really do that?" in this case?

Is there a way to change this behavior? For example, could I force Windows to display a dialog asking "Do you really want to shutdown?"?

I tried to change this behavior with the policy editor. It seems to be very easy to completely remove the Shutdown button from the Start menu, but I couldn't find an entry to turn on such a Yes/No dialog.

share|improve this question
    
I've always found this odd. If you have something that asks to save when it closes, type a few letters quickly, then hit cancel, and shutdown stops, but there's no non-hacky way to do it. –  Phoshi Dec 31 '09 at 19:32
add comment

3 Answers

You can remove the Windows Shutdown button from the start menu and use this utility instead

The Beyondlogic shutdown utility hand provides:

  • Options to shutdown, power-off, reboot, suspend, hibernate, log-off or lock the workstation.
  • Actually shutdowns ACPI Compliant computers including WinNT4 with the hal.dll.softex Hardware Abstraction Layer.
  • Ability to display optional message of a maximum 300 characters.
  • The shutdown dialog will appear on the active window, should it be the login window, login screen saver, logged in user's desktop, or on a locked workstation.
  • Option to allow the user to cancel the operation. (This can be greyed out)
  • Option to prevent shutdown action occurring on logged-on computers giving your users the flexibly to run lengthy processes overnight without being disturbed.

I'm using this with Windows 7, works a like a charm, just create a few batch files for your preferred actions, e.g. Shut Down, Log Off, Hibernate (set the time you may need to cancel this operation) and place shortcuts in the start menu, taskbar on the desktop or your favorite launcher.

enter image description here

Tip: rename the file (e.g. shtdwn.exe) as shutdown.exe already exists in windows if you want to use it from the commandline.

share|improve this answer
    
nice workaround! But I am still looking for an on-board/built-in solution. –  Vokuhila-Oliba Jan 1 '10 at 12:14
    
there isn't, as windows own shutdown.exe does not allow to abort the shutdown via GUI, you can only use the argument -a from the command line or another batch file (if the initial shutdown was timed with -t xx). anyway, a 18 kilobyte stand-alone executable doesn't really bloat your system :) –  Molly7244 Jan 1 '10 at 18:02
add comment

Here is a workaround:

  1. Right click on the Shutdown button and choose Properties
  2. define the default action as logoff

You still don't get a dialog asking "do you really want ...". But you are only logged off when the Button is clicked by accident.

EDIT: if you are wondering what happened to the shutdown entry: it has been moved into the arrow menu now (automatically).

share|improve this answer
add comment

Set your computer to display the Shutdown Event Tracker dialog box every time you shut down. The tracker, normally only used on servers, will ask you why you're shutting down. To proceed, you'll have to specify a "reason". Simply enter some random characters, such as asdfdfsfdsadf, then press Enter to shut down.

  • Click on StartRun…gpedit.msc (or, alternatively: WinRgpedit.msc)

  • Computer ConfigurationAdministrative TemplatesSystem

  • Display Shutdown Event TrackerEnable

This is not available in all editions, though, so you could also try:

  • Click on StartRun…regedit (or, alternatively: WinRregedit)

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Reliability

  • NewDWORD 32

  • Enter as name: ShutdownReasonUI

  • Enter as value: 1

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.