How to force a "do you really want to shutdown?" dialog in Windows 7?

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).


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.


You can use the built in Shutdown Event Tracker.

I have read elsewhere that you can do it through the following:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Reliability
Name:ShutdownReasonUI (REG_DWORD)
1=enable 0=disable

But this did not work for me. I had to use the group policy editor (Start -> run -> gpedit.msc) and edit "Computer Configuration -> Administrative Templates -> System -> Display Shutdown Event Tracker"

enter image description here