The “at” command can be very useful. Below is just one simple use to schedule a reboot of a Windows 2003 server at a certain time and day.

The at command:

at [\computername] TIME [DATE] “command”

for example

at 3:00 AM Sun shutdown -r

The above command will restart (-r) the server the command is run on at 3:00 AM on the next Sunday it encounters.

My example above works on a Windows 2003 server. It should work on newer versions of Windows Operating systems as well.

Hope this helps. For some other tips using the command line see our list of other command line articles.

rebooting a pc using AT