- Create a new AD group that you wish to use to deploy software to.
- Create 4 new Collections within the ConfigMgr Console
- Create the application collection <Application Name> ie. Microsoft Lync
- Create 3 Sub Collections
- Create a Has <Application Name>
- Create a Need <Application Name>
- Create a Remove <Application Name>
- Create your membership rules for each collection. These will all be query based collections
- For the Has <Application Name> collection use the following query. ***Be sure to update the areas in <> in the query
- For the Need <Application Name> collection use the following query. ***Be sure to update the areas in <> in the query
- For the Remove <Application Name> collection use the following query. ***Be sure to update the areas in <> in the query
- select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId
where SMS_R_System.SystemGroupName = “<DomainName>\\<AD Group>" and SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName
like "<AddRemoveProgramsDisplayName>"
- select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup,
SMS_R_System.Client
from SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId
where SMS_R_System.SystemGroupName = "<DomainName>\\<AD Group>" and SMS_G_System_SYSTEM.Name not in
(select SMS_R_System.Name from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on
SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName like
"<AddRemoveProgramsDisplayName>")
- select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client
from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId
inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName like "<AddRemoveProgramsDisplayName>" and SMS_G_System_SYSTEM.Name not in
(select SMS_R_System.Name from SMS_R_System where SMS_R_System.SystemGroupName = "<DomainName>\\<AD Group>")
No comments:
Post a Comment