Afficher un message
Vieux 25/09/2007, 21h30   #1
Fred Beck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Filtering Group membership results

The following script is easy enough:

Set objGroup = GetObject("LDAP://CN=GroupName,OU=Denver,DC=Fabricam,DC=com")
arrMemberOf = objGroup.Getex("member")
i = 0
For Each strMember In arrMemberOf
i = i + 1
wscript.echo strMember
Next
wscript.echo i

It returns each member of the group "GroupName" and then the total number of
members in the group.

Problem is, the limit of Getex appears to be 1000 items and i have more than
that in the group.
Fortunately, this is a mixed group. It contains Users and Computers. If I
could filter out the computers, I would be under the 1000 item limit. All I
need in the Users in the group anyway.

Problem is I can't figure out the method to filter groups. Can someone ?

Thank you!
Fred
  Réponse avec citation
 
Page generated in 0,04935 seconds with 9 queries