Create a Powershell script to automatically email all the groups for PNR Windows OS Security Patching
I'm very new to powershell scripting. I was working on a issue to try and speed up our patching process. I'm trying to create a script that can be executed at the end of the Windows OS Security patching for the Patch & NoReboot groups to send the reboot needed emails. The script should take the list of patched servers from the current run and then email the owners that the patching is complete and they need to reboot. We usually have to send out many many emails one at a time, that can sometimes take a couple hours, just to ask people to reboot their servers. Any help on this topic would be greatly appreciated.