skissinger
Posts: 2114
Score: 134 Joined: 9/13/2001 From: Sherry Kissinger Status: offline
|
Because your collection contains an ADgroup, not "resourceids of machines where <some condition>", no matter how often you run discovery, it's irrelevant. The trigger is the end user has to log off/log back on. The tokenID (I think that's the right term) indicating what usergroups that user belongs to cannot be added to logged-in credentials in any other way. After the login, the usergroups attached to the login have changed, and *now* when the client goes and checked the MP for policies, it'll see what's deserved to that user because of the new usergroup. Try it; add a user to a group, and monitor policyagent & policyevaluator; after a logoff/on, you'll see something in one of those logs about "Usergroup membership changed" (or something like that), and it'll trigger a full evaluation for user- or usergroup-deserved policies. That logoff/on requirement is one of the reasons I'm moving every collection from being "Domain\Usergroup", to being something like this (note I use SLAT from SystemCenterTools.com, not ConsoleUser). These collection queries results in the members of the collection being machine resourceIDs--so there's no longer the logoff/on requirement. It's a compromise, I know. But see?! I've also got the query for "machines which are a member of the usergroup xxyy". I'm trying to change the culture here to "machines have software installed. Users do not." I think I'm making some progress. quote:
select SMS_R_SYSTEM.ResourceID from SMS_R_System inner join SMS_G_System_MCS_USERLOGONINFO_1_0 on SMS_G_System_MCS_USERLOGONINFO_1_0.ResourceID = SMS_R_System.ResourceId where SMS_G_System_MCS_USERLOGONINFO_1_0.UserName in (select UserName from SMS_R_User where UserGroupName = "DOMAIN\\ReallyImportantApp_2008") and SMS_G_System_MCS_USERLOGONINFO_1_0.UserRank = 1 and select SMS_R_SYSTEM.ResourceID from SMS_R_System where SystemGroupName = "DOMAIN\\ReallyImportantApp_2008"
_____________________________
mofmaster@smsexpert.com (version 2007) | http://www.smsexpert.com | http://www.sccmexpert.com My Blog Microsoft MVP - ConfigMgr
|