How to Make a Shortcut to Shutdown on Windows Vista

One click shutdown
Irritated that the shutdown shortcut I used to shutdown XP (Windows Key, U, U) was no longer useful in Vista, I had taken to actually having to use the mouse (*gasp*) to shut down. Eventually, I set up the power button on the start menu to shutdown which allows for the keyboard shortcut Windows key, right arrow. I still didn’t like it, plus, if I want to do anything else, like sleep or hibernate my computer, it would take many more key strokes. So, I resolved to create a icon that will immediately shut down the computer. Once placed in the quickstart toolbar, it’s a one click solution; assign a Shortcut key, and it’s one keystroke.
To create a shutdown shortcut:
- Right-click on the desktop
- Go to New
- Click shortcut
- The prompt will ask you for the location. Enter the following
C:\Windows\System32\shutdown.exe -s -t 01 - Click Next and choose a name for the shortcut.
- The new shortcut will now appear on your desktop.
For additional points, you can right click on the icon, select Properties, then click the Change Icon button. Using the default Vista icon set, you should be able to find the shutdown icon like the one in the picture above.
The idea is simple. It creates a shortcut to the shutdown.exe that Windows uses to initiate the shutdown sequence. The switches I have are -s and -t, which sets the process to shutdown (as opposed to restart) and sets the delay to one second, respectively. To customize your shutdown experience, use the switches:
Switches for shutdown.exe
- -s | Shutdown
- -r | Restart
- -l | Log off user
- -t nn | Delay in number of seconds. If this switch isn’t used, the default is 30 seconds.
- -f | Forces close of programs immediately without warning the programs (Can result in data loss and corruption).
- -a | Aborts the shutdown process.
How to Fix Hibernation in Windows Vista
If the hibernation option is missing from your Vista power options, it’s possible the Hibernation file cleaner was removed from the computer. It seems this can be done using Window’s built in Disk Cleanup utility. Below are the steps to create a new Hibernation file cleaner and restore the hibernation option to the computer:
- Open the Start menu
- Type cmd in the search field (this is the same as going to Start>Run, but I don’t believe “run” appears by default in Vista with the new start menu)
- Type powercfg -h on
- Press ENTER
If you did it correctly, there should be no output on the screen other than another prompt waiting for input. Check your power menu now to see if hibernation appears. Mine immediately appeared as the default option when clicking the power button on the start menu.
[Source]

