Do you listen to music before dozing off in ur bed? Do u leave Laptops On and realize u failed to switch it off before dozing off?
Here is a simple dos command to set off the shutdown/log/restart of your PCs.
Run Cmd. To shutdown after an hour (60 * 60 = 3600 secs), use Shutdown -s -t 3600.
To abort/change a shutdown at any time, do a shutdown -a