Managing a windows server can be a little tricky at times. Because we read a lot of the best practices, Do and Don’t. And many different opinions. Whether or not it’s right to schedule reboot or shutdown. Whatever you opinion is, There are times we want to go ahead with the task reschedule anyway. And I would say that a correct decision is, You should do whatever floats your boat. And should not focus on other people’s opinions. It doesn’t matter if you are doing this to install a VM machine or updating the previous one. It is very much acceptable to task schedule reboot.
Now that we determined about task rescheduling, The duration depends completely on you. Whether you want a fast running server, Or give constant service. Choosing the hour is quite important, You should schedule a reboot when the server is not being used. Nighttime could be a great hour for making this effortless. It should be noted, If the web server is not just for an organization. And being used to host websites on WWW. Then Reboot and shutdown should be done only in extraordinary times.
A reboot of devices can help us resolve lots of minuscule issues, That occurs due to the build-up of cache and batch files. But the most important reason would be that It makes us ready to reboot or shutdown when needed. Learning to do planned reboot is very much necessary to tackle situations, Like Grid Failure. Server Overload, Hardware Malfunction.
Step by Step Tutorial – How to use task scheduler to reboot
Okay, Let’s start the automatic system reboot for your windows server. Make sure that your VM is in an administrative account. If you are using one. If you have directly installed the Windows onto your hardware. Then I’m sure you would probably have the administrative tool in place.
1) Open the control panel from your windows device.
2) Visit the -> All Control Panel Items-> Administrative Tools
3) After you find the Task Scheduler app, Click on the software.
Once you do that the desktop version of Task Scheduler will pop up. After that, you need to create the task you want to schedule.
4) After the Dialogue Box appears, You need to set up the task you want to do, In your case, we want to reboot our machine for a particular date. Select Create Task under the actions and Enter the name and description of the task.
5) Make sure you are logged In. If you are not logged in to the machine. In that case, It might follow the instruction. To overdo this, You are required to set the administrator rights to the highest privilege.
6) After setting up the task, We can now move onto other tasks. Click on the Trigger tab and create an execution trigger for the following. After doing this, It will now automatically run the system task as scheduled by the administrator.
7) Once done, A new dialogue box will appear, You can use this to set up a new task or event. Also from here, you only need to set the time trigger from where you machine, Will use to automatically reboot your device.
8) After doing the above step, You can move the action tab to set up the command to trigger the scheduled task.
Command For Automatic Shutdown
%SystemRoot%\system32\shutdown.exe -s -f -t 10
Command For Reboot
%SystemRoot%\system32\shutdown.exe -r -f -t 10
This is a very brief tutorial, So I have not covered every little detail. As System Administrator, I’m sure you have quite a few technical skills under your belt. This is one of the easiest methods to schedule an automatic reboot for your machine.