The power options in Windows Vista were terribly placed. Although it became better in Windows 7, many users find it a bit weird. In this post, I am going to guide you towards shutting down/restarting your computer in a single click.
Go to your computer’s desktop and right click then hit New > Shortcut.
Now enter the following command in the field - Shutdown.exe –s –t 00
You can name the shortcut as ‘Shutdown’ and hit finish.
If you’d like an appropriate Icon in its place you can pick one from the huge repertoire of icons available at SHELL32 (you can access these when you click on change icon under properties).
There are also similar shortcuts available for Restarting/Hibernating/Putting it to sleep. Use the following lines of commands just like how you did for shutting down your computer.
Restart: Shutdown –r –t 00
Hibernate: Rundll32.exe PowrProf.dll,SetSuspendState
Sleep: Rundll32.exe PowrProf.dll,SetSuspendState 0,1,0
You can pin these shortcuts to the taskbar by right clicking on them and selecting ‘Pin to taskbar’.
If you find the entire post to be overwhelming, you might want to check out a gadget with easy-to-use power buttons here.