Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

NEW Get query for AD group in sccm

Sridharrandy

Member
Messages
23
Reaction score
1
Points
3
Hi All.

I am created 10 device collection and the same we have also AD group for all the collection..

I need query for how many collection is linked with single AD group ..

I want to fetch those information through query based rule.

Please provide me query for the above..

Your quick response is very much appreciated..
 
First, you need to enable Active Directory Group Discovery method.

Try with this query to create your device collection:

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.SecurityGroupName = "Contoso\\Test_Security_Group"
 
Back
Top