• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Schedule reboot for large number of servers?

gus6464

Golden Member
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.
 
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?
 
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.
 
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"
 
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.
 
Back
Top