Shutdown, Restart, And Logoff Icons On The Desktop

You might want to have shortcuts on the Desktop for shutdown, hibernation, etc. This can be done by a simple process. In order to get them..

Right-click on the Desktop and make a new shortcut by selecting New > Shortcut. Then in the Type the location of the item: box, enter “shutdown.exe -s –t 00”, where “00” is the delay in seconds. (You can increase it.) You will then be asked to select a name (call it “Shutdown”, for example).

After creating the shortcut, you can change the icon assigned to it by right-clicking on the shortcut and selecting Properties. The window that comes up next has a “Change Icon” option, which is easy to use.

For a Restart shortcut, use “shutdown.exe -r -t 00”. Replacing -r by –l gives the code for logging off: “shutdown.exe -l -t 00”. Fast user switching is also possible; the code for that is “Rundll32.exe User32.dll, “LockWorkStation”.

Similarly one can also make a shortcut for Standby/Hibernation. If Hibernation is enabled, the computer will hibernate, else it will go into Standby. For this, use “%windir%\system32\rundll32.exe PowrProf.dll,SetSuspendState”.

Filed under: OS Tweaks & Hacks
Tags: , , , , , ,
April 16, 2009 by: Prasanth Chandra

Leave a Reply