Standby and Hibernate from Command Line

R

ralphs

How can I cause standby or hibernate from the command line? The shutdown
utility seems to only be able to shut down or reboot.
 
R

ralphs

How can I cause standby or hibernate from the command line? The shutdown
utility seems to only be able to shut down or reboot.

Found it,
rundll32 powrprof.dll,SetSuspendState
 
N

Nepatsfan

In
ralphs said:
How can I cause standby or hibernate from the command line?
The shutdown
utility seems to only be able to shut down or reboot.

Try psshutdown.exe from Microsoft.

PsShutdown v2.52
http://www.microsoft.com/technet/sysinternals/utilities/psshutdown.mspx

Place a copy of the program in your Windows/System32 folder.
The following command will put the system into Standby
immediately.

psshutdown.exe -d -t 00

This command will result in the computer hibernating
immediately.

psshutdown.exe -h -t 00

If you'd rather not use psshutdown, take a look at this
article. Keep in mind that using this method will result in
having to choose between the two possible power states. You
can't have both.

How To Put the System into hibernation or Standby from Run menu
http://support.microsoft.com/kb/555569

Good luck

Nepatsfan
 
R

ralphs

How can I cause standby or hibernate from the command line? The shutdown
Try psshutdown.exe from Microsoft.

PsShutdown v2.52
http://www.microsoft.com/technet/sysinternals/utilities/psshutdown.mspx

Place a copy of the program in your Windows/System32 folder.
The following command will put the system into Standby immediately.

psshutdown.exe -d -t 00

This command will result in the computer hibernating immediately.

psshutdown.exe -h -t 00

If you'd rather not use psshutdown, take a look at this article. Keep in
mind that using this method will result in having to choose between the
two possible power states. You can't have both.

How To Put the System into hibernation or Standby from Run menu
http://support.microsoft.com/kb/555569

Good links, thanks.

I don't know why I didn't look at the sysinternals site for this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top