We have 8 servers that cannot be down at the same time. I'm trying to setup a job to reboot each server after it has been patched. I have the first job executing a shutdown reboot command. The second job I'd like to have is a job that pings the server. Upon a successful ping and job end, I'd like to repeat the process till all 8 servers have been sucessfully rebooted.
The problem that I'm running into is that the first job ends before the reboot is successful and the second job kicks off and it sucessfully pings because at that exact time the server is still up, but on it's way down. We are running windows, not unix.
Anyone have a script that would do this ?