BatchPatch Forums Home › Forums › BatchPatch Support Forum › Automate Monthly AD Sync and Update Install w/reboot
- This topic has 5 replies, 2 voices, and was last updated 5 years, 10 months ago by bleonard.
-
AuthorPosts
-
February 13, 2019 at 5:58 pm #8724bleonardParticipant
I’m looking for advice on how to automate our BatchPatch Windows update process. Ideally I would like to setup a recurring job that syncs with AD to add or remove new or deleted machine accounts. Then run a Windows update and reboot task only installing updates older than 30 days. At the end of the job sending out an email of the job status. I can do all these tasks individually, but I’m having trouble putting them into a single job that automatically runs every month. Any help is greatly appreciated.
February 13, 2019 at 7:30 pm #9920dougModerator1. Configure grid sync settings (Grid > Synchronize grid with directory)
2. Configure 30-day threshold for Windows Updates (Tools > Settings > Windows Update > Only install updates that were published / approved at least 30 days ago)
3. Configure email notifications settings (Tools > Settings > Email notifications)
4. Create and save a job queue with steps that looks something like this:
—-A. Synchronize grid with directory (add and remove hosts)
—-B. Download and install updates plus reboot if required
—-C. Send email notification
Job Queue tutorial: https://batchpatch.com/using-the-job-queue-in-batchpatch-for-multi-step-execution
5. Create a recurring scheduled task that executes the job queue that you created/saved:
February 13, 2019 at 10:19 pm #9921bleonardParticipantI believe I got it set up correctly. Is there a way to limit how many hosts BatchPatch is processing at once? Some of our OUs have 50+ servers in them. They are VMs and having too many VMs rebooting at once can cause an issue with the VM host machine.
February 13, 2019 at 10:56 pm #9913dougModerator‘Tools > Settings > General > Concurrent Thread Maximum’ can be used to control the number of simultaneous threads. However, in your situation since you are scheduling the jobs I would recommend that you simply schedule the virtual hosts in a staggered fashion so that they execute at different times rather than trying to execute them all at the same time.
Another option is to use the multi row queue sequence to stagger execution:
advanced-multi-row-queue-sequence-video-tutorial
advanced-multi-row-queue-sequence
virtual-machine-guest-host-update-and-reboot-sequence-automation
February 13, 2019 at 11:08 pm #9914bleonardParticipantI was actually going to run the job by creating a new tab adding a row named after the job queue, then adding the recurring scheduled task pointing to the desired saved job queue. I noticed the option of “Wait for host to go offline and come back online” so I added that just before the Send email notification step. Am I correct in thinking this will wait until all 80 or so hosts have completed their reboot before it sends out the grid email? I want to avoid seeing hosts that are mid reboot or not complete with the install on the email. I’ve had issues in the past not giving BatchPatch enough time to complete before sending the email.
February 13, 2019 at 11:22 pm #9915dougModerator“Wait for host to go offline and come back online” is explained in more detail here:
-
AuthorPosts
- You must be logged in to reply to this topic.