Wed 21 May 2008
How To Create Shutdown and Restart Buttons on your desktop
Posted by brett under tutorial, windows
[8] Comments
Want to be able to click a button on your desktop to shutdown your computer instead of having to click “Start -> Turn Off Computer -> Turn Off” every single time? All you have to do is create a shortcut on your desktop that points to shutdown.exe with the right switches. When you have finished it could look something like this…
Creating a Shutdown button:
Right click the desktop and select new -> shortcut and the Create Shortcut wizard will appear. Click the browse button and browse to C:\WINDOWS\system32\shutdown.exe and click OK…
Now add the switches by typing “-s -t 0″ (without quotes, zero not the letter o, and spaces between -s & -t & 0) to the end of the text in the location box as shown below…

Now click next and finish. You will now have a functioning but ugly shutdown button on your desktop…

To make it look nicer rename the shortcut then right click, select properties, and select Change Icon to select a better icon.
Create a Restart button:
It might seem a little strange but Windows XP restarts using the same shutdown.exe file. To create a restart button follow the same steps above but use a -r switch instead of a -s switch…
After creating both shortcuts, renaming them and changing the icons, you should have something like this…
Shutdown.exe switches: http://support.microsoft.com/kb/317371
8 Responses to “ How To Create Shutdown and Restart Buttons on your desktop ”
Comments:
Leave a Reply
Trackbacks & Pingbacks:
-
Trackback from blogbookmark.com
May 26th, 2008 at 1:49 amHow To Create Shutdown and Restart Buttons on your desktop…
Want to be able to click a button on your desktop to shutdown your computer instead of having to click Start -> Turn Off Computer -> Turn Off every single time? All you have to do is create a shortcut on your desktop that points to shutdown.exe…
-
Trackback from Blogsvine
May 26th, 2008 at 1:54 amHow To Create Shutdown and Restart Buttons on your desktop…
Want to be able to click a button on your desktop to shutdown your computer instead of having to click Start -> Turn Off Computer -> Turn Off every single time? All you have to do is create a shortcut on your desktop that points to shutdown.exe…







May 24th, 2008 at 4:39 am
On that MS support website stands a description of “msg”. For making a message appear while logging out, do you know how to do that? And how to create a Stand-By shortcut button?
May 26th, 2008 at 4:10 pm
Saw your post on LinkMarker and I must say this is the something I’ve never thought of, am gonna give this a try. :)
August 22nd, 2008 at 2:47 pm
because it’s so hard to hit the start button!?!?!
August 31st, 2008 at 3:00 pm
Hi ViniMan thanks for commenting. To show a comment while shutting down or restarting, add a “-c” switch like this…
%windir%\system32\shutdown.exe -s -c “goodbye cruel world!” -t 5
Notice I have changed the -t value from 0 to 5. This will cause shutdown.exe to wait 5 seconds before executing, otherwise you won’t have time to read the message.
To put the system into standby you need to use rundll32.exe so the shortcut target would be…
C:\WINDOWS\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
Which only leaves logoff and hibernate so I will list them here too…
Logoff:
C:\WINDOWS\System32\shutdown.exe -l
Hibernate:
C:\WINDOWS\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate
November 27th, 2008 at 9:22 pm
how i set time of shutdown.exe command
March 21st, 2009 at 3:24 am
Cool
Is it possible to make a restart button but who will restart on another partition? It is to go on an other OS?
thanks