List all Collections which have both Direct members and Query-Rules assigned within your SCCM 2012 Site. This also works with Configuration Manager 2007...
[begin T-SQL]
SELECT DISTINCT
dbo.v_CollectionRuleDirect.CollectionID,
dbo.v_Collection.Name
FROM
dbo.v_CollectionRuleDirect INNER JOIN
dbo.v_CollectionRuleQuery ON dbo.v_CollectionRuleDirect.CollectionID = dbo.v_CollectionRuleQuery.CollectionID INNER JOIN
dbo.v_Collection ON dbo.v_CollectionRuleDirect.CollectionID = dbo.v_Collection.CollectionID
ORDER BY dbo.v_Collection.Name
[end T-SQL]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment