Hi @shockoMS ,
Thank you for posting in Microsoft Q&A forum.
Do you mean to use WMI class to query which collections a client is member of? If yes, we can use the SMS_FullCollectionMembership class to achieve this. For example, we can use below WMI query in the root\sms\site_com (site name of my environment) namespace to list all the collections that client1 device belongs to:
SELECT SMS_Collection.* FROM SMS_FullCollectionMembership inner join SMS_Collection
on SMS_FullCollectionMembership.CollectionID = SMS_Collection.CollectionID
where name = 'client1'
Refer to: SMS_FullCollectionMembership Server WMI Class
Thanks for your time. Have a nice day!
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.