Specific time
at 04:00 shutdown -r -t 60 -f -d p:4:1 -c “Description here”
Day of the Month (eg 23rd)
at 21:40 /next:23 shutdown -r -t 60 -f -d p:4:1 -c “Description here”
Day of the week (M,T,W,Th,F,S,Su)
at 21:40 /next:W shutdown -r -t 60 -f -d p:4:1 -c “Description here”
The reason codes can be found in full by typing shutdown and pressing enter!
In the examples above it is Planned Application Maintenance
-r (Reboot)
-t 60 (in 60 Seconds)
-f (force programs to close)
-d p:4:1 (Planned application Maintenance)
-c “Description here” (write a note of “description here” into the logs)
The AT command has been depreciated but you can create a scheduled task for a reboot from the command line still…
schtasks /create /tn "Reboot" /tr "shutdown.exe -r -f -t 00" /sc ONCE /st 04:00:00 /sd 23/12/2020 /ru DOMAIN\USER /rp PASSWORD