Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Windows, there's the shutdown cmd line, but is there a windows command line command to call a "standby"?

What I'd really like is to call something like standby -force to force a system to enter standby even when a pesky app is trying to prevent it.

share|improve this question
up vote 2 down vote accepted


rundll32.exe powrprof.dll,SetSuspendState

The action will differ depending on whether or not you have Hibernation enabled.

share|improve this answer

PSshutdown, part of the free PSTools suite from the Sysinternals team at Microsoft, can do this. Shutdown.exe on my XP machine will not - you have not told us what version of Windows you're asking about, and I don't know if shutdown.exe has that option on Vista or different Server versions.

share|improve this answer

In Windows Vista and 7 you can use the /h switch of the shutdown command to hibernate the computer and /f to force the command: shutdown /h /f.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.