Set Maintenance Windows for Software Updates

For the last two years, we’ve just had workstations in our SCCM environment, and now we are starting to bring in the servers. The server teams have a patching schedule and there are quite a few of them. They also change every month, they always relative to Patch Tuesday and have different reboot times. As a solution, we’ve setup a folder to put all the collections in and use a naming convention of “Patch Day NN ???? Reboot HH:MM”

So, I have a script I use, I’m publishing it now, but I confess, I want to do some polishing. I’d like to make it a little more efficient, but in the meantime, here it is. You can download it from my bitbucket link, or copy and paste from below. I’ve tried to put as many comments in there as I could, when I update the script, I’ll repost.