Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any specific command or script through which I can schedule an Auto reboot of Windows Server 2008 R2?

share|improve this question
up vote 10 down vote accepted

Possibly the shutdown command from a Command Prompt?

shutdown -r -f -t 10


  • -r restarts
  • -f forces processes to terminate
  • -t 10 waits 10 seconds before shutdown

The way I would do this is by scheduling a batch file with the above line in it, although you will probably be able to do this through PowerShell too.

share|improve this answer
Exactly how we used to do it. – Joe Taylor Nov 1 '10 at 11:39
@Joe Taylor: used to do it? – tombull89 Nov 1 '10 at 15:58
thanx for the help ! – harryoxford Nov 2 '10 at 8:04
Yeah, I no longer work for that company so no longer have to reboot their servers. I'm sure they still do it that way. Sorry for the confusion. – Joe Taylor Nov 2 '10 at 10:43

Command Prompt, type:

AT 06:00 SHUTDOWN -r -f

At 6:00am the Server or PC will Reboot (-r) and any running apps will be exited (-f)

This command creates a Scheduled Task.

Now How easy is that?

You can get really funky on the Comand line by scheduling a reboot every weekday at a specific time.

share|improve this answer

You must log in to answer this question.

protected by Community Jan 24 '14 at 5:56

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .