10
3
Is there any specific command or script through which I can schedule an Auto reboot of Windows Server 2008 R2?
10
3
Is there any specific command or script through which I can schedule an Auto reboot of Windows Server 2008 R2?
10
Possibly the shutdown command from a Command Prompt?
shutdown -r -f -t 10
Where:
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.
3
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.
Exactly how we used to do it. – Joe Taylor – 2010-11-01T11:39:02.723
1@Joe Taylor: used to do it? – tombull89 – 2010-11-01T15:58:57.110
thanx for the help ! – harryoxford – 2010-11-02T08:04:24.023
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 – 2010-11-02T10:43:23.973