« Windows Vista SP1 RC Builds Expire Very Soon | Home | Apple Releases Mac OS X 10.5.4 »
How to Shutdown, Restart, Sleep, Lock and Hibernate using command line
By Planet Lowyat - June 28, 2008

How to Shutdown, Restart, Sleep, Lock and Hibernate using command line on Microsoft Windows Vista.
1. Shutdown your Computer
- Shutdown.exe -s -t 00
- Force all applications to close and shutdown immediately
- Shutdown.exe -s (After 30s…)
2. Restart Computer
- Shutdown.exe -r -t 00
3. Sleep Computer
- Rundll32.exe Powrprof.dll,SetSuspendState Sleep
4. Lock your Computer
- Rundll32.exe user32.dll LockWorkStation
5. Hibernate Computer
- Rundll32.exe Powrprof.dll,SetSuspendState Hibernate
So for anyone who would like to make your life easy, you can create a shortcut button that link to the related command show as above.
Enjoy!
Tags: button, command line, Howto, Microsoft, shortcut, Tips, Vista
Posted in Hows To |
