What is the command to use to put your computer to sleep (not hibernate)?

Posted by airrick on Super User See other posts from Super User or by airrick
Published on 2009-09-11T10:16:21Z Indexed on 2010/05/01 0:48 UTC
Read the original article Hit count: 232

Filed under:
|
|

I want to put my windows pc (win7) into a sleep state via command line (so i can bind to macro button on keyboard).

The power button on the PC is setup to but the computer to sleep (but it's down on the floor and I'm too lazy to reach down) it exactly how I want it (sleeps using hybrid mode in case I loose power)

The sleep command on the shutdown menu also works.

most info I found says to use; %windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState 0,1,0

But this puts the computer in hibernate mode. I do have hibernate disabled but using hybrid sleep.

So, What is the command to use to put your computer to sleep (not hibernate)?

© Super User or respective owner

Related posts about Windows

Related posts about windows-7