Wow that was easy. Thanks, Date: Thu, 16 Apr 2015 16:52:11 +0100 Subject: Re: [mssms] SCCM script to get all collection memberships From: [email protected] To: [email protected]
TBH that will give you the collection IDs. On Thu, Apr 16, 2015 at 4:48 PM, Paul Winstanley <[email protected]> wrote: Get-WmiObject -ComputerName <site server> -Namespace root/SMS/site_<sitecode> -Query "SELECT * FROM SMS_FullCollectionMembership WHERE Name='<hostname>'" On Thu, Apr 16, 2015 at 4:37 PM, 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.
