08.27.05

Using at for a Scheduled Reboot

Posted in Windows at 4:48 pm by Keith

Although it reportedly doesn’t work in unpatched Windows XP (run Windows Update now!) at is useful command line program. I found out about it when trying to figure out a way to schedule a daily reboot of Windows XP. You can use the at command to do this with the following:

at hh:mm /every:M,T,W,Th,F,S,Su shutdown -r

where hh is the hour (24 hour clock a.k.a. military time) and mm is the minutes that you want the reboot to happen. You can use at with any other CLI command. To view what you have scheduled type at; to remove your scheduled commands type at /delete; to see all of at’s options type at /help.

Powered by Gregarious (34)

Leave a Comment

Socialized through Gregarious 34
Close
E-mail It