Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

up vote 1 down vote accepted

From: http://support.microsoft.com/kb/555569/en-us

rundll32.exe powrprof.dll,SetSuspendState

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.