Support Forums
Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: Microsoft Support (https://www.supportforums.net/forumdisplay.php?fid=5)
+----- Forum: Windows 7 (https://www.supportforums.net/forumdisplay.php?fid=14)
+----- Thread: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) (/showthread.php?tid=3424)



Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - WMM - 12-08-2009

Alright so maybe it is just me but I like to have a little icon on my navigation bar for Windows 7. I will tell you here how you can make one for locking your computer, shutdown your computer, restart your computer, hibernate and lastly make your computer sleep with just one click of a shortcut.
Steps
To start you will need to go to your computer and right click your desktop, and then select "New" then "Create new Shortcut".
[Image: 1.png]
Here are the code options:

Shutdown:
Works with XP, Vista, Windows 7
Shutdown.exe -s -t 00
Restart:
Works with XP, Vista, Windows 7
Shutdown.exe -r -t 00
Lock:
Rundll32.exe User32.dll,LockWorkStation
Hibernate:
rundll32.exe PowrProf.dll,SetSuspendState
Sleep:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
All the above will work with Windows 7 some work with others as well I have specified which ones will.


Enter the Code here:
[Image: 2.png]
Then choose your name for the shortcut:
[Image: 3.png]
Once you entered the code and finished there will be a new shortcut with properties.
You can change the icon all you want enjoy!
Tutorial By:
WMM
Thanks!


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - Codine - 12-08-2009

The shitdown and restart would also work for XP and vista.. Just to let you know.


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - WMM - 12-08-2009

I knew that just though I would just have it for windows 7 but I will add it.


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - Codine - 12-08-2009

It'd be nice to see it added, as alot of people still do use Windows XP & Vista.


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - WMM - 12-08-2009

Done!
Smile
I specified which ones will work with those.


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - Codine - 12-08-2009

Excellent, looks alot better now. Well done. Smile


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - WMM - 12-08-2009

Thanks, Hope people find it useful.


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - Codine - 12-08-2009

I'm sure they will, i'll bookmark this page and post it to some friends. Smile


RE: Useful Shortcuts (shutdown, restart, lock, Hibernate & Sleep) - WMM - 12-08-2009

Cool ;) some people don't even know this is possible lol