Created
May 1, 2019 03:42
-
-
Save timdenholm/d850258a68c9506adff99ffda6407ebd to your computer and use it in GitHub Desktop.
Get SCCM Software Update Collection Membership
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
fcm.Name AS 'host', | |
fcm.CollectionID AS 'sccm_su_collection_id', | |
cg.CollectionName AS 'sccm_su_colection_name' | |
FROM v_FullCollectionMembership fcm | |
JOIN Collections_G cg ON cg.SiteID = fcm.CollectionID | |
WHERE cg.CollectionName LIKE 'SU-%' | |
ORDER BY host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment