Last updated on April 17th, 2023 at 12:36 am
To set this up, create a new collection and copy and paste this as its query:
where SMS_R_User.SecurityGroupName = "DomainADSecurityGroup"
You can add or remove any of the SMS_R_USER columns from the select statement but the part you will need to change is:
- “DomainADSecurityGroup” – this should be changed to the name of your own domain and after the then change this for the object name of your security group.
Then go ahead and save this query and from within your SCCM console, update the collection and you should now see all the users within the security group, in your new collection.
What does WQL mean?
WMI Query Language
What does SCCM mean?
(Microsoft) System Center Configuration Manager
If you have any questions or feedback about this post, or if you would like us to create any queries for you, please go ahead and leave us a message below in the comments section and we will get back to you as quick as we can.
If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.
No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.