Use the cmd command shutdown -h to hibernate the computer, but find that the computer does not hibernate but shuts down

照鹏 梁 5 Reputation points
2023-09-15T11:52:50.38+00:00

Both win10 and win11 that I had tired, the newly bought mini host, due to automation needs, so set up a task scheduler to run every day, after the end of the run will execute shutdown -h command into sleep and wait for the next day to be woken up

Then it was found that using the cmd command to enter the sleep state for a little longer (wake up failed after 2 hours of testing) would shut down instead of hibernate, and clicking the sleep button with the mouse could sleep for a long time and be woken up by scheduled tasks

I don't want the computer to go into a shutdown state, how to solve it, the problem is why the cmd sleep command causes the computer to shut down, how to prevent the computer from automatically entering the shutdown state

Windows for business | Windows Client for IT Pros | User experience | Other
{count} vote

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.