Q. How can I place a computer in sleep state from the command line?

A. The command below will put your machine to sleep. It's useful in scripts and shortcuts.

rundll32 powrprof.dll,SetSuspendState

Note that, depending on your computer's configuration, the command may hibernate your computer instead.

Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.