Windows Server – Schedule a Reboot

KB ID 0001321 

Problem

Back in the day we just used the ‘At’ command to schedule a reboot, but starting with Server 2012 that was stopped! If you try it now you will see the following;

The AT command has been depreciated. Please use schtasks.exe instead

Solution (The Quick Way)

Execute the following command (change time and data accordingly);

[box]

schtasks /create /tn “Scheduled Reboot” /tr “shutdown /r /t 0” /sc once /st 12:20:00 /sd 02/03/2020 /ru “System”
[/box]

Solution (The Long Way)

Launch Task Scheduler.

Create Basic Task.

Give the task a name, (and optionally a description) > Next > One time > Next > Enter the date and time for the reboot to occur > Next.

Start a program > Next > Program/Script = PowerShell > Add Arguments = Restart-Computer -Force > Next > Finish.

Related Articles, References, Credits, or External Links

NA

8 thoughts on “Windows Server – Schedule a Reboot

  1. or use the utility for tasks.
    schtasks /create /tn “reboot for updates” /tr “shutdown /r /t 0” /sc once /st 01:07:00 /sd 06/15/2017 /ru “System”

  2. The default setting is “Run only when user is logged on”, which needs to be changed in the task properties after finishing the wizard.

Leave a Reply

Your email address will not be published. Required fields are marked *