Hey,
I'v got a group in ActiveDirectory that has about 2000 members.
I want to remove a certain user from that group.
When I tried to remove it using the group's DirectoryEntry:
usersGroup.Children.Remove(userEntry) I get the following exception:
"Cannot Remove The Specified Item Because It Was Not Found In The Specified
Collection".
When I looked at the group's "Member" collection in the debug window, I saw
only the first 1500 results - all the other 500 and so users (among them the
user I tried to remove from that group) were not on that list.
I know for sure that the other 500 users are on that group because when I
look at the - "MemberOf" property of that users,
I get - among other groups - the current group.
Is there another way of doing so, that is not limited to a nomerouse number
of users?
Thanks ahead
--Ram