Tips n’ Tricks – Windows
Hibernate remotely – with timer
In a command shell type:
ping -n 20 127.0.0.1 > NUL 2>&1 && shutdown /h /f
(It is working – I have used it.)
The ping is to give 20 seconds to regret.
The ping is a hackish way of delaying the action. -n 20 should wait for 20 seconds.
(the double && will allow you to do a Ctrl+C to cancel the operation, if you use a simple & then Ctrl+C will make to automatically shutdown after pressing)