Schedule reboot for large number of servers?

gus6464

Golden Member
Nov 10, 2005
1,848
32
91
Is there a way to batch schedule for a one-time reboot of 18 servers without having to log into each one on Win Server 2008 R2? Looking for a way to do it without logging into every single server and setting up task scheduler.
 

gus6464

Golden Member
Nov 10, 2005
1,848
32
91
So figured out I can push an schtasks command through the GPO but can't seem to figure out the syntax for multiple machines. This is basically what I got:

reboot one time tomorrow at 12:30am using specified credentials

schtasks /create /tn "reboot" /tr "shutdown /r/t1" /sc
once /st 00:30:00 /sd 10/04/2013 /s \\server1,\\server2,\\server3 /u domain\user /p password

it looks good but the /s command does not take multiple machines. Is there a workaround to this?
 

Compman55

Golden Member
Feb 14, 2010
1,241
0
76
1.) Cut main power to server room.
2.) Wait for the UPS's to deplete.
3.) Turn on power.

Sorry, couldn't resist. I would be curious of the syntax as well.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Put the shutdown commands in a batch file one line per server and call the batch file in the schedtask

shutdown /r /p /m \\server1 /c "planned reboot"
shutdown /r /p /m \\server2 /c "planned reboot"
 

AFurryReptile

Golden Member
Nov 5, 2006
1,998
1
76
In the past I've put a scheduled task into Group Policy.

Currently I use a $300 application called PDQ Deploy that let's me schedule pretty much anything I want, like software installation. It works great for sending the "shutdown /r" command on schedule.