We got some AD-groups for specific type of systems (not everyone needs all software):
SCCM_Software1, SCCM_Software2 and SCCM_Software3 for example.
Now we got some collections that queries if the object is member of one of these groups. The Query looks like (for the Software1 group):
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System
where SMS_R_System.SystemGroupName = "DOMAIN\\SCCM_Software1" and SMS_R_System.Client = 1
Now we got a collection to check if there are objects that do not belong to any of these groups:
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System
where SMS_R_System.Name not in (select Name from sms_r_system where systemGroupName like "DOMAIN\\SCCM_Software%") and SMS_R_System.Client = 1
Now we want to create a collection that checks if an object is a member of multiple Groups. We tried something with COUNT(*), but this results in an error. Any clues how to solve this problem?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
We got some AD-groups for specific type of systems (not everyone needs all software):
SCCM_Software1, SCCM_Software2 and SCCM_Software3 for example.
Now we got some collections that queries if the object is member of one of these groups. The Query looks like (for the Software1 group):
Now we got a collection to check if there are objects that do not belong to any of these groups:
Now we want to create a collection that checks if an object is a member of multiple Groups. We tried something with COUNT(*), but this results in an error. Any clues how to solve this problem?
Share this post
Link to post
Share on other sites