Restart computer few hours later, at night

One way is to create a scheduled task that includes command
shutdown -r -t 0 -f
Another way is to launch the command by needs:
Reboot computer after one hour
shutdown -r -t 3600 -f
Reboot computer after 2 hours
shutdown -r -t 7200 -f
Reboot computer after 3 hours
shutdown -r -t 10800 -f
Reboot computer after 4 hours
shutdown -r -t 14400 -f
Reboot computer after 5 hours
shutdown -r -t 18000 -f
Reboot computer after 6 hours
shutdown -r -t 21600 -f

3 comments: