Create a Shortcut to Shutdown/Restart/Lock/Hibernate your Computer

Shortcuts are meant to make specific tasks easier for the user. Adding different program shortcuts on your desktop is a really simple thing but we can even create shortcuts to perform many other tasks as well such as creating  shut down or restart you computer with a shortcut.

Many of you may have an idea on how to create a desktop shortcut to shut down you computer but for those who don’t, just follow the guide:

  1. Right click on your desktop and navigate to New > Shortcut.

shutdown-shortcut-1

  1. Create shortcut wizard will start once you click on new shortcut. In the location bar, type “shutdown -s -t 01” and click Next.

shutdown-shortcut-2

  1. You are almost done here, just type the name of the shortcut and click Finish.

shutdown-shortcut-3

A new shortcut will now appear on the desktop.

shutdown-shortcut-4

  1. Now if you want to change the icon of the shortcut, right click on the shortcut and select Properties. Click on Change Icon button.

change-icon-1

  1. It will open a list of icon, simply select the icon and click OK.

change-icon-2

  1. It will change your desktop shortcut icon. Now all you have to do is double click on the shortcut and it will automatically shut down your computer.

change-icon-3

Below is the list of other commands you can use to perform other functions like Restart, Sleep, lock your computer, hibernate etc.

Restart

Shutdown.exe -r -t 00

Hibernate

shutdown.exe -h

Sleep

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Lock

Rundll32.exe User32.dll,LockWorkStation

3 Comments

Blogging + Tech Blog March 25, 2010

This will be a lot lot faster way to shutdown the PC.Thanks for this tip.

Anshul March 25, 2010

Nice tip.. to add to it, you can change the numbers written after -t..this number sets the timeout for shutdown.. so if you use -t 22, then it will wait for 22 sec before shutting down.

hammad April 4, 2010

yes you can do that too but i think t=0 is the most appropriate for me..u can change the time to whatever u like 🙂