Ive been banging my head on the desk trying to take a batch script and get the functionality in powershell.
I need to schedule reboots of servers and have the servers reboot one at a time according to the order of the file the server is in. I need to check a service or two, and then capture a log file for all servers in that specific scheduled reboot time, then email it out.
I am basically lost on this one entirely as I’ve tried all the options and I can schedule a single reboot, but nothing in a rolling manner, I can’t get the logs or service checks to go, or the email.
Can anyone help me out? The batch file is old and it isn’t great, but I’m also trying to learn more. All servers don’t have powershell on them, and it’s a mix of 2003-2012.