JSI Tip 9301. How can I control when cached universal group membership information is considered to be stale?
April 27, 2005
In tip 7211, we configured a Windows Server 2003 domain controllers to cache universal group membership.
In tip 8432, we configured the refresh interval and user limit for refreshing the cache.
When the cache becomes stale, after one week of non use, the information is considered invalid and is refreshed. If it cannot be refreshed, it is not used, but it is not purged from the domain controller for 180 days.
I have amended CacheFreq.bat to include the configuration of the Cached Membership Staleness and Cached Membership Site Stickiness data.
The syntax for using CacheFreq.bat on every domain controller that caches group membership is:
CacheFreq Minutes NumbUsers StaleMinutes StickyMinutes
where:
Minutes is the number of minutes between cached membership updates. The default is 480.NumbUsers is the number of users to update. The default is 500.StaleMinutes is the number of minutes after which an unused entry is considered state, and must be refreshed.StickyMinutes is the number of minutes after which a stale entry will be purged from the cache.
NOTE: CacheFreq.bat uses Numeric.bat.
CacheFreq.bat contains:
@echo offsetlocalif {%4}=={} goto syntaxset min=%1set num=%2set stl=%3set prg=%4call numeric %min% ansif "%ans%" EQU "N" goto syntaxcall numeric %num% ansif "%ans%" EQU "N" goto syntaxcall numeric %stl% ansif "%ans%" EQU "N" goto syntaxcall numeric %prg% ansif "%ans%" EQU "N" goto syntaxif "%min:~0,1%" EQU "0" goto syntaxif "%num:~0,1%" EQU "0" goto syntaxif "%stl:~0,1%" EQU "0" goto syntaxif "%prg:~0,1%" EQU "0" goto syntaxset key=HKLMSYSTEMCurrentControlSetServicesNTDSParameters@echo REG ADD %key% /V "Cached Membership Refresh Interval" /T REG_DWORD /D %min% /FREG ADD %key% /V "Cached Membership Refresh Interval" /T REG_DWORD /D %min% /F@echo REG ADD %key% /V "Cached Membership Refresh Limit" /T REG_DWORD /D %num% /FREG ADD %key% /V "Cached Membership Refresh Limit" /T REG_DWORD /D %num% /F@echo REG ADD %key% /V "Cached Membership Staleness" /T REG_DWORD /D %stl% /FREG ADD %key% /V "Cached Membership Staleness" /T REG_DWORD /D %stl% /F@echo REG ADD %key% /V "Cached Membership Site Stickiness" /T REG_DWORD /D %prg% /FREG ADD %key% /V "Cached Membership Site Stickiness" /T REG_DWORD /D %prg% /Fendlocalgoto :EOF:syntax@echo Syntax: CacheFreq Minutes NumbUsers StaleMinutes StickyMinutesendlocal
About the Author
You May Also Like