#147969 - 2005-09-16 02:46 PM
Re: Token cache unreliable?
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
rename a group then EnumGroup() doesn't show the changes.
This is a known limitation of the caching mechanism and is documented in the manual.
If you are likely to encounter this a lot you might be better off querying group membership using native AD mechanisms.
Alternatively, remove the group cache registry key as the first task in your script. This will slow it down a bit as it will always need to enumerate group membership once per script invocation, but it does guarantee that the cache is up-to-date.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 331 anonymous users online.
|
|
|