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

link|improve this question
feedback

2 Answers

up vote 4 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.

link|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
feedback

There's a simple way to schedule your shutdown or restart on Windows Server. http://www.itbox4vn.com/2011/05/how-to-schedule-windows-server-20032008.html Have fun!

link|improve this answer
This requires a download. – Keith May 24 at 1:11
feedback

Your Answer

 
or
required, but never shown

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