I'd like to suspend my windows machine after a specified time like
shutdown -s -t 3600
but I don't want to turn it off, but only switch to suspend mode. Is there a command line to do this?
Use the at
command, running the command to put the computer to sleep. The shutdown
command doesn't have a sleep parameter.
at <time> rundll32 powrprof.dll,SetSuspendState
you'll find more information about at
and its parameters here.
Instead of the rundll32
command, you could use an alternative command-line program, like sleep.exe for instance.