Create Shortcut to Shutdown Windows. Reboot and Log off Shortcuts

How to create shortcut to shutdown windows ? Shortcut for shutdown process or shortcut to shutdown windows computer can be created easily.
The usual procedure to shutdown or log off a windows computer is by opening Start-> Turn Off Computer and then select Restart, Shutdown and Log off option. To avoid all these steps we can create desktop shortcuts for all these operations. Once the shortcuts are created you can easily place that in task bar or Quick Launch based on the version of Windows OS you have.
In Windows XP and later versions of Windows there is a specific application to shutdown, restart, log off operations. The application is Shutdown.exe. The file is located in “C:Windowssystem32” folder. The tool needs different command line parameters for different operations. These parameters are different for different operations. This application can be used as a Windows Remote Shutdown Tool also. You can even specify the machine name to shutdown as a parameter. See the parameter details below

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
C:>shutdown -?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m computername] [-t xx] [-c "comment"] [-d up:xx:yy]
 
        No args                 Display this message (same as -?)
        -i                      Display GUI interface, must be the first option
        -l                      Log off (cannot be used with -m option)
        -s                      Shutdown the computer
        -r                      Shutdown and restart the computer
        -a                      Abort a system shutdown
        -m computername       Remote computer to shutdown/restart/abort
        -t xx                   Set timeout for shutdown to xx seconds
        -c "comment"            Shutdown comment (maximum of 127 characters)
        -f                      Forces running applications to close without warning
        -d [u][p]:xx:yy         The reason code for the shutdown
                                u is the user code
                                p is a planned shutdown code
                                xx is the major reason code (positive integer less than 256)
                                yy is the minor reason code (positive integer less than 65536)

Create Shutdown Shortcut for Windows XP, Vista, Windows 7 on Desktop

This is pretty easy to do. From the above listed parameter options you can easily understand the necessary parameters required for each of the operations.
To create a shortcut follow the following instructions.

  • Right click the Desktop and select New->Shortcut.
  • In the dialog box add the following

For Shutdown shortcut
%windir%system32shutdown.exe -r -t 20 -c “This shutdown Message”
For Restart shortcut
%windir%system32shutdown.exe -r -t 20 -c “This restart Message”
For Shutdown Log off shortcut
%windir%system32shutdown.exe -l -t 20 -c “This logoff Message”
In the above options the “-t 20″ is the timeout for the specified operations.

  • Click Next
  • Type the shortcut name.
  • Click OK

This will create a shortcut in your desktop. If you want to change the icon displayed for the shortcut, right click on the shortcut and select properties. In the properties window “Shortcut” tab click on “Change Icon” button.shutdown-shortcut-icon-shortcut to shutdown
You can click on the shortcut and a system shutdown window will appear as below,Windows Shutdown Reboot and Logoff Shortcuts

You can add these shortcuts that you created for shutdown or restart to your Taskbar or to Windows 7 Quick Launch bar.

Before you Go,

Before you go, subscribe to get latest technology articles right in your mailbox!.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Shares