I have a shutdown /s -t 10320 command in place but i have hibernated my computer.

ara2vind

Honorable
Oct 5, 2013
5
0
10,510
I gave the command "Shutdown /s -t 10320" and than i hibernated(and also made it sleep a few times) my computer will this stop the countdown timer in the system and resume when i resume windows please answer
 

Hawkeye22

Distinguished
Moderator
That should be "shutdown -s", not /s. To abort, you need to issue the "shutdown -a"

Code:
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c
omment"] [-d up:xx:yy]

        No args                 Display this message (same as -?)
        -i                      Display GUI interface, must be the first option
        -l                      Log off (cannot be used with -m option)
        -s                      Shutdown the computer
        -r                      Shutdown and restart the computer
        -a                      Abort a system shutdown
        -m \\computername       Remote computer to shutdown/restart/abort
        -t xx                   Set timeout for shutdown to xx seconds
        -c "comment"            Shutdown comment (maximum of 127 characters)
        -f                      Forces running applications to close without war
ning
        -d [u][p]:xx:yy         The reason code for the shutdown
                                u is the user code
                                p is a planned shutdown code
                                xx is the major reason code (positive integer le
ss than 256)
                                yy is the minor reason code (positive integer le
ss than 65536)
 

ara2vind

Honorable
Oct 5, 2013
5
0
10,510

Have you clearly understood my question?



My Question is if i give a Shutdown command in CMD as you said, when i hibernate or Sleep my computer will it stop the Countdown?

And FYI i am using a School computer so if i give the command in the morning after the given time the computer has to shutdown so in my case 10320 seconds was a test
 

Hawkeye22

Distinguished
Moderator
I beleive that sleeping or hibernating while waiting for a shutdown will override the shutdown, but why not just test that theory? Set the shutdown for 3 minutes, then put the computer to sleep. After 3 minutes, is the computer sleeping or powered off? If it's sleeping, wake it up and wait 3 more minutes. Is the computer off now?
 

ara2vind

Honorable
Oct 5, 2013
5
0
10,510


Thanks for the tip i will try it