Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers 2

up vote 7 down vote accepted

Possibly the shutdown command from a Command Prompt?

shutdown -r -f -t 10

Where:

  • -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
1  
@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
add comment

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
add comment

protected by Community Jan 24 at 5:56

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.