How to Shutdown, Restart, Sleep, Lock and Hibernate using command line

Written by Planet Lowyat on June 28, 2008 – 12:02 am -

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.

Read more »


Tags: , , , , , ,
Posted in Hows To | No Comments »
RSS