I want to use user collections to install and uninstall software when a user is put into/taken out of an active directory group.
I figured I can use 2 deployments install and uninstall and I have managed to get an application to install automatically with the following membership rule query applied to an install user collection when a user is added to an AD group (Audacity):
select
SMS_R_USERGROUP.ResourceID,SMS_R_USERGROUP.ResourceType,SMS_R_USERGROUP.Name,SMS_R_USERGROUP.UniqueUsergroupName,SMS_R_USERGROUP.WindowsNTDomain
from SMS_R_UserGroup where SMS_R_UserGroup.UsergroupName = "Audacity"
What I would like to do now is uninstall the application automatically when a user is removed from the AD group, so I've created an uninstall user collection, but I cannot for the life of
me figure out what query(s) to use as a membership rule.
Can anyone help out? Or, is there a different/better way to accomplish this task? I have seen this done with device collections but I want to use user collections.
- Edited by John Caviani 10 hours 56 minutes ago