Windows 8 "Command Prompt" - Command to Hibernate with Time

Tiago

Active Member
Joined
Mar 23, 2015
Location
45606435
• I know, the command "shutdown / h" makes the computer hibernate, immediately. I want to do the same command, but with: + timer to run.

• Like as the command "shutdown -s -t 5400" makes the computer off not immediately, but after 90 min. I want to hibernate computer.

• Question: How to Write a command line to Hibernate Timer?

Windows 8.1
 
Last edited:
1. This forum is for tutorials and this post doesn’t belong here.
2. The example code you are asking about will never work, simply because once a system shuts down it is OFF and stops responding to the users code/ inputs… a scenario that has a computer shut down then hibernate isn’t workable.
3. In Windows 8.1 there is already built in timers for screensavers, sleep, shut down and hibernate and these can be set from the power options or you can set the system (also in power options) to hibernate strait away when a [hibernate key] is pressed… most laptops also allow you to hibernate when the lid is closed.
4. Some of the better name brands like Asus and Gateway allow you to set hibernate and wake up setting in the motherboard bios… these tend to be for scenarios that have a system waking up/ hibernating after receiving a ping across the network so that servers can be reached remotely but there is some flexibility built into their system.

Finally hibernating has several performance issues that Windows never managed to fully resolve and has been fazed out in favour of the sleep command… one of the main 3 advantages of using the current UEFI system is it’s fast wake up/ boot and that largely makes the hibernate system (outside of legacy installs) redundant.
 
1. This forum is for tutorials and this post doesn’t belong here.
2. The example code you are asking about will never work, simply because once a system shuts down it is OFF and stops responding to the users code/ inputs… a scenario that has a computer shut down then hibernate isn’t workable.
3. In Windows 8.1 there is already built in timers for screensavers, sleep, shut down and hibernate and these can be set from the power options or you can set the system (also in power options) to hibernate strait away when a [hibernate key] is pressed… most laptops also allow you to hibernate when the lid is closed.
4. Some of the better name brands like Asus and Gateway allow you to set hibernate and wake up setting in the motherboard bios… these tend to be for scenarios that have a system waking up/ hibernating after receiving a ping across the network so that servers can be reached remotely but there is some flexibility built into their system.

Finally hibernating has several performance issues that Windows never managed to fully resolve and has been fazed out in favour of the sleep command… one of the main 3 advantages of using the current UEFI system is it’s fast wake up/ boot and that largely makes the hibernate system (outside of legacy installs) redundant.
Sorry. I got it. The command is: "timeout /t 5400 /nobreak & shutdown /h" (for 90 minutes = 1,5 hour) for Hibernate with timer. And can be used Task Scheduler to program when will executed. Simply place the code in a notepad and save as .bat file.
Thank you!:);):thumbs_up:
 
Last edited:
Back
Top Bottom