How to set SCOM Maintenance Mode via Orchestrator 2012 / 2016 and SCCM Collections for Remote Servers and Desktops

No comments

How to set SCOM Maintenance Mode via Orchestrator 2012 / 2016 and SCCM Collections for Remote Servers and Desktops.

clip_image001
If you are an IT admin you know putting servers in maintenance mode schedules it's crucial to not bug all your colleagues with hundreds if not thousands of emails during the systems scheduled restart. Currently if you use SCOM 2012 or 2012 R2 you don’t have an actual Scheduled Maintenance mode groups as they have finally release on the 2016 version.

Step by Step

  • On your Configuration Manager Create a collection with the members you will like to put in maintenance mode.
    • Example
      • ServerCollectionNameSat12AM
  • Go to your Orchestrator console and create a new runbook.
  • On you runbook you will need to following activities.
    • Monitor Date/Time
    • Check Schedule
    • Get Collection Members (SCCM integration pack)
    • Start Maintenance Mode (SCOM integration pack)
clip_image002
  • After you have added the activities you will need to link them all same as above.
  • Activities Configuration:
    • Monitor Date/Time
clip_image003
  • Check Schedule
On this one you might be required to create a new schedule.
To configure, go to the Global Settings/Schedules then create a New Schedule
clip_image004
clip_image005
clip_image006
Then after creating your schedule assign to your Check Schedule Activity
clip_image007
  • Get Collection Members (SCCM integration pack)
On the Collection Members Activity Add the Collection and Name
clip_image008
  • Start Maintenance Mode (SCOM integration pack)
clip_image009
On the SCOM Maintenance perform the following tasks:
clip_image010
clip_image011
{Member Name From "Get Collection Members"}.DomainName : Microsoft.Windows.Computer:{Member Name From "Get Collection Members"}.DomainName
Make sure your syntax looks this way if not it will not work as SCOM will not read the name correctly.
  • After Configuring the activities you should be able the Check in and Run (Start the Runbook)
You should be able to see the Log history. Mine worked as expected :)
clip_image012


















No comments :

Post a Comment