I want to remotely restart a bunch of computers, but I do not want them all to reboot at the same time. I have a batch file below that i want to insert a WAIT command, so that the batch file will execute a command on one line, wait maybe 5 minutes, then go to the next line execute the command, wait 3 minutes, execute the command, etc.
what is the command i will put after each line to tell the batch to wait before moving to the next line?
shutdown -m \\servername1 -r -f
shutdown -m \\servername2 -r -f
shutdown -m \\servername3 -r -f
shutdown -m \\servername4 -r -f
shutdown -m \\servername5 -r -f
shutdown -m \\servername6 -r -f
shutdown -m \\servername7 -r -f