Creating a group that excludes members of other groups

Andrew Tabar 171 Reputation points
2022-09-20T21:14:42.473+00:00

Is there a way to create a group criteria that says:
Not a member of Groups X, Y or Z?
For example, I have groups of print servers in NA, APAC and EU. I want to create a group of print servers that aren't in any of those groups, so that I can identify them to get them grouped correctly or fix whatever needs to be fixed.

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,446 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SChalakov 10,371 Reputation points MVP
    2022-09-21T06:09:09.17+00:00

    Hi @Andrew Tabar ,

    there is a way and it involves either a bit of scripting or some MP authoring. SCOM has some nice PowerShell cmdlets, but when it comes to group editing, there is more to wish. So I would recommend you to go this way:

    OpsMgr: How to create a group of all Windows Computers that are NOT a member of another group
    https://kevinholman.com/2012/03/09/opsmgr-how-to-create-a-group-of-all-windows-computers-that-are-not-a-member-of-another-group/

    You can apply the same logic in your case and achive the task.

    I hope I could help you out!

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
    Regards
    Stoyan Chalakov

    1 person found this answer helpful.
    0 comments No comments

  2. Simon Ren-MSFT 32,221 Reputation points Microsoft Vendor
    2022-09-21T03:00:33.533+00:00

    Hi,

    Per my experience, you can create a group that contains all the print servers based on active directory OU. And then we can create a new group with an expression, which basically states “All Windows Computers that are NOT CONTAINED in the print server group”.

    For more detailed steps, please refer to:
    OpsMgr: How to create a group of all Windows Computers that are NOT a member of another group
    Authoring SCOM groups – from simple to complex

    Hope it helps. Thanks for your time.

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.