Sunday, January 23, 2011

Windows command line "suspend"

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.

  • 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.

    From mfinni
  • 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.

    From Rob D.
  • 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.

    From sinping

0 comments:

Post a Comment