I am new to PowerShell, please bear with me. I was able to create a script to restart a computer and send email. I also setup to stop if it gets an error. (Ex. If computer is not on)
My question is there a way to create a PowerShell script to not email if the reboot command does not work then process the next command which is to restart another computer. The erroraction stops the entire script. Would it be better to create a script for each computer. I want to reboot 7 computers in one script and run in task scheduler.