Useful Hacks, Reviews, Tips and Tricks of anything under the moon and the sun.

Create shortcut for Shutdown / Restart / Lock in Windows 7 or Vista

1 comment
Most of computer users like shortcuts simply because its the fastest way to perform a task. Isn't great if we have shortcuts to shutdown, restart or lock windows on our desktop or quick links? In Windows 7 and Vista, this is very easy. To create shortcuts for Shutdown, Restart or Lock, just follow these simple steps.

1. Right click on the desktop, Choose "New" then click "Shortcut" from the popup menu.
2. In the shortcut location dialog, type the command to perform the task you require as show below.

Create shortcut for Shutdown / Restart / Lock in Windows 7 or Vista

Here are the list of the commands you can use:
Shutdown Computer - "Shutdown.exe -s -t 00"
Restart Computer - "Shutdown.exe -r -t 00"
Lock Worstation - "Rundll32.exe User32.dll,LockWorkStation"
Hibernate Computer - "rundll32.exe PowrProf.dll,SetSuspendState"
Sleep Computer - "rundll32.exe powrprof.dll,SetSuspendState 0,1,0"

3. Now click the "Next" button on the above dialog then name your new shortcut with any label you want.

Thats it! your shortcut is now ready. You can also change the default icon of the shortcut if you want :)

1 comment :