One very common request I always get with my SCOM 2012 customers is, “how can I put machines into Maintenance Mode for a future date?”
My response is, well, with some PowerShell and the Windows Task Scheduler, you can achieve this. But wait, looks like the System Center/SCOM 2016 team has listened and delivered! Introducing ‘Maintenance Schedules‘.
Now SCOM administrators can put a machine, or a group of machines, or a group into Maintenance Mode (MM) for a future date. Even better, it looks like a lot (if not all) of the functionality has been taken from good old Windows Task Scheduler. What that means is, you can put machines into MM, for that Friday night/Saturday morning Change Request, or even better MM for reoccurring schedule, like Patch Tuesday.
In the example below, I am going to do a quick walk-through for a group of machines for a typical patching schedule.
For this scenario, let’s assume the following:
- Machines are patched every 3rd Friday of the month,
- Blackout/maintenance window is 6 hours (360 minutes),
- Scheduled MM will start @11:00PM.
- Right click either on Maintenance Schedules, or within the middle pane.
- As a rule of thumb, always a good idea to select the second (default) option here, “selected objects and all their contained objects.“
- Search for the machine(s) or the group(s) you want to enter into Maintenance Mode
- Once you’re happy, go ahead and hit next
- Next we are presented with an array of options. As per our example, we will be putting our machines in MM every 3rd Friday of the month, starting at 11:00PM, for 6 hours.
- Now we’re ready
- Now we need to provide a name to our MM Schedule… By default, ‘Planned’ and ‘Enable Schedule’ are ticked off. Go ahead and hit finish!
- Now we can see our new Scheduled Maintenance Mode schedule! 🙂
As you can see here, for a SCOM Administrator, you can see which user create this task and also to see if it is enabled at the current time
- You can also Edit, Copy, or Disable the schedule. Looks like I just discovered a bug! Also, disabling is not provided here, but it is within the Action pane:
- And that is it!
If the schedule was done correctly, you will see the Event ID 1215 within the SCOM Management Server.
I hope this helped!
Happy SCOM’ing 2016!!