I am using PowerShell to add user collections to my Configuration Manager
The Command is: Add-CMUserCollectionDirectMembershipRule -CollectionName “All Mobile Devices” -ResourceId " "
I want to make the membership rule an Active Directory User Group but I am not sure how to Query the Resource ID for an Active Directory User Group. I have to use the Resource ID and not the name
Please help me figure out how to do this or if you know another way to do this let me know