![]() As an example: I run this Powershell script once a year to setup all of my server maintenance windows. ![]() This is a Powershell script made by Mattias Benninge. If you are using SCCM, you can set maintenance windows based on offsets from Patch Tuesday using New-CMMaintenanceWindow.ps1. Note that this script needs to run from the SCCM server itself. You would run this script as a scheduled task once a day at 8AM. Due to the way the months work, for +18 days after Patch Tuesday, I send these out on Thursdays instead of Fridays as the script doesn’t work correctly if the date rolls into the next month. This will send out notifications at 8AM on Friday for a maintenance window that takes place Saturday night from 10PM to 5AM. Send-UpdateNotification2.ps1 is a notification script I use with SCCM. ![]() I currently do a pilot group which is fired the night of Patch Tuesday, and then +4, +11 and +18 days after Patch Tuesday, which is every Saturday after Patch Tuesday. Patch Tuesday is always the 2nd Tuesday of the month and is when Microsoft releases it’s monthly patches. I schedule updates as an offset from Patch Tuesday. Now that you found your favorite patching program, we need to send out notifications and target specific servers for patching.
0 Comments
Leave a Reply. |