The right click tools have that ability. This is the query I run in them to get the information:
"select Distinct SMS_Collection.* from SMS_FullCollectionMembership inner join SMS_Collection on SMS_Collection.CollectionID = SMS_FullCollectionMembership.CollectionID where SMS_FullCollectionMembership.ResourceID like '" + $ResourceID + "'" Then you just use $_.Name to get the name of the collection. On Thu, Apr 16, 2015 at 10:37 AM, Nick sullivan < [email protected]> wrote: > Anybody aware of a Powershell script I can run to get collection > memberships of a computer using SCCM WMI Queries not the SCCM Commandlets. > > > > > >
