How to build a collection to exclude members of another collection RRS feed

  • General discussion

  • Greetings,

    I had the need to make a collection that excluded members of another collection. I needed to seperate several custom machines that I don't want to be updated by the SUP.  I had a really hard time trying to find and/or build a query that actually worked. After lots of web research and trial and error I now have a query that does the job. Since I can't be the only one that needs something like this I thought I would post it here.

    I'm using System Center Configuration Manager, Microsoft Corporation, Version: 4.00.6487.2000




    SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.Client = 1 and

    SMS_R_System.ClientType = 1 and SMS_R_System.ResourceId not in

     (select ResourceID from SMS_CM_RES_COLL_XXXxxxxx)


    Replace the item in red with the Collection ID of the collection you are trying to exclude, which is located under the General tab of the properties window.
    • Edited by Lisa_May Thursday, April 15, 2010 12:35 PM
    Wednesday, April 14, 2010 7:00 PM

All replies

  • How right you are.  This topic comes up many times in the forums.  I even have it in my presentation for MMS 2010.
    http://www.sccm-tools.com http://sms-hints-tricks.blogspot.com
    Wednesday, April 14, 2010 9:39 PM