Mapping MECM collection membership to SCOM group

Bojan Zivkovic 436 Reputation points
2023-01-31T17:41:15.0533333+00:00

Hi, is it possible to automate mapping of MECM collection membership to SCOM group membership (preferably with PowerShell). Basically what I want is to set up scheduled maintenance mode applied to SCOM group whose members are computers that are also members of MECM collection with proper Maintenance Window defined on it (Maintenance Mode in SCOM matches Maintenance Window of MECM collection). As far as I know, OperationsManager PS module does not have cmdlets for managing SCOM groups whatsoever.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,419 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. George Moise 2,346 Reputation points Microsoft Employee
    2023-01-31T20:21:21.7033333+00:00

    Hello,

    I am not sure if this is the correct approach, nor if there are better options than this.
    Still looking at the article below, there seems to be a community PowerShell module that allows you to create and manage SCOM Groups from a PS Script:

    https://www.cloudsma.com/2018/01/automate-scom-group-creation/

    Having that, you just need your PowerShell commands to extract collection members from MECM (maybe this - https://learn.microsoft.com/en-us/powershell/module/configurationmanager/get-cmcollectionmember?view=sccm-ps)

    I hope it helps!

    BR,

    George

    1 person found this answer helpful.
    0 comments No comments

  2. CyrAz 5,181 Reputation points
    2023-02-10T21:10:18.69+00:00

    This is a better option to sync scom maintenance mode with sccm maintenance windows: https://kevinholman.com/2019/07/28/scom-agent-initiated-maintenance-mode-with-sccm-maintenance-windows/

    0 comments No comments