Follow us on X (Twitter)  Like us on Facebook  Connect with us on LinkedIn  Subscribe to our YouTube Channel  Subscribe to our WhatsApp Group

It happens sometime when we want to schedule shutdown or hibernate our Windows OS after a specific time of interval. If you are an advanced user, you must be aware of schedule shutdown option from a command line.

 

But how to schedule hibernate? In this small tips & trick post, I am going to share you the way to do this from command prompt itself. Continue reading to know the trick.

 

You must be aware of the command “shutdown” which you can invoke from a command prompt to logoff, shutdown, restart and even hibernate the system. You can pass “/t xx” as a command line parameter to the “shutdown” command to schedule shutdown or restart operation after xx seconds. But what if one wants to hibernate the system after “xx” seconds? The “shutdown /t xx /h” will not help you out.

 

To resolve this, there is an alternate way (we already know: everything in this technical world has workarounds) which uses the “ping” and “shutdown” commands altogether.

 

 

Here is the trick for your reference:

 

// hibernate your system after xx seconds
ping -n xx 127.0.0.1 && shutdown /h /f
 
// hibernate your system after 60 seconds
ping -n 60 127.0.0.1 && shutdown /h /f
 
// hibernate your system after 3600 seconds
ping -n 3600 127.0.0.1 && shutdown /h /f

 

 

First, the ping command will execute for “xx” no. of times. We already know that the ping command pings the specified address after 1 sec. of interval. So here one tick means one second. This will execute for “xx” seconds and once it completes, it will go for the next command i.e. “shutdown” in this case. As we specified “/h” as a command line parameter to this, it will actually do a hibernation of the system.

 

Hope this helps you a lot and will be able to schedule a hibernate in your Windows system. Drop a line below, if it helps. Don’t forget to share it in your network and help your friends learn about this trick. Connect with me on Twitter, Facebook to get all posts that I share. Cheers.


 

Have a question? Or, a comment? Let's Discuss it below...

Thank you for visiting our website!

We value your engagement and would love to hear your thoughts. Don't forget to leave a comment below to share your feedback, opinions, or questions.

We believe in fostering an interactive and inclusive community, and your comments play a crucial role in creating that environment.