How to Schedule a reboot of Windows server


How to Schedule a reboot of Windows Server

If you’re searching for the great previous AT command on Windows eight, Windows Server 2012 or more moderen OS, you’re going to realize that the command has been deprecated. Instead you will have to take a look at the schtasks.exe command line software, that is also a lovely robust software.

The want for scheduling a reboot of a server

There may also be many the explanation why you’re going to want to time table a restart of a server as an alternative of simply rebooting it immediately. Most of the time it’s because it’s getting used and you have got to watch for a repairs home windows to carry out the duty. Often I’ve wanted to time table a server reboot or a Windows Service restart and I’ve been the usage of the great previous AT command for this job in a few years. However, in more moderen OS beginning with Windows eight/Windows Server 2012 the AT command isn’t operating anymore. The new command to do the ones sort of duties now, is the schtasks.exe command line software. If you take a look at to run the AT command on a more moderen running techniques, you’re going to get the message beneath:


How to time table a server restart with schtasks.exe

Ok, let’s have a glance at the schtasks command. To time table a server restart you will have to run the next command line:

schtasks /create /sc as soon as /tn Reboot /tr “shutdown – r -f “”restart””” /st 22:00

This command will create a scheduled job that may run as soon as at 22:00 and execute a compelled reboot of the server/laptop you’ve got created the duty on. If you like to use the graphic consumer interface to investigate cross-check your newly created job or to alternate the time it’s going to run, you’ll be able to use the Windows Task scheduler. You can of motive additionally take away a job with schtasks, like within the instance beneath:

schtasks /delete /TN “reboot”

The good factor about penning this command as an alternative of the usage of the Task scheduler GUI is that you’ll be able to run different command line gear first after which end with a server reboot then the duty is finished, however you’ll be able to of motive additionally use the Task Scheduler GUI if you’re extra relaxed the usage of that.

Shutdown task

Final ideas

I’m hoping you discovered what you had been searching for on this publish. If you’ve got any questions, please drop me a remark beneath.


About the writer:
I’m an IT Professional that has this weblog as a interest mission in my spare time. I’ve been within the IT trade since 1996 and need to percentage some of the article I’ve picked up over time with individuals who talk over with this weblog…

>>Subscribe to my Newsletter<<

Source hyperlink


Please enter your comment!
Please enter your name here