If you already had the need to schedule a reboot on Windows Server and tried to use the traditional “at” command, you will notice that since Windows Server 2012 this command has been discontinued.
How to Install the Hyper-V Role on Windows Server 2019
Best Practices for Active Directory FSMO Functions
Create an Active Directory Win 2012 R2 administrator group
Activating Windows Server 2016 via command prompt
Storing SSH keys in Active Directory for easy deployment
To schedule the reboot, use the command below just changing the time and data according to your need:
schtasks / create / tn “Scheduled Reboot” / tr “shutdown / r / t 0” / sc once / st 12:20:00 / sd 02/03/2020 / ru “System”
It is also possible to perform this activity through the Task Scheduler by creating a task:
Give it the desired name and click next> select the period the task will be performed> next again and enter the date and time for the restart> click next.
In actions, select to start a program> Select Powershell and enter the argument “Restart-Computer -Force”> Advance and Complete the creation of the task.
Was this article helpful?
To maintain a quality standard for you, we have invested in a great hosting plan, Paid CDN, Website Optimization Plugins, etc ...
Help us to keep the project active!