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

I'm trying to set up a batch file I would run via task scheduler to put my computer to sleep at a given time, but I can't get exactly what I want ...

When I press the sleep button on my keyboard (or click sleep in the power menu), the computer goes to sleep and when I power it up again, it only takes about 4-5 second until I am at the logon screen.

When I try to do the same via command line, when I power it up again, it goes through the POST screen and I have to wait at the "resuming windows" screen. How can I get the same result in command line?

I already tried Rundll32.exe powrprof.dll,SetSuspendState Sleep and Rundll32.exe powrprof.dll,SetSuspendState Standby without the result I was expecting...

PS : I'm on Win7 x64

marked as duplicate by Windos, Gaff, BBlake, Nifle, Gnoupi Nov 8 '12 at 13:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.