Board index » Visual Studio » Problem with script to find users who are members of a group
|
sailorlion
|
Problem with script to find users who are members of a group
Visual Studio91
Hello. I have found this script in the script repository and have used it to find users who are members of a particular AD group. It works for most cases. One of the cases that do not work correctly is when an AD group has over 5000 members in it. It only returns about 15 members when I know it has over 5000. Does anyone know why? Is it because of the local property cache? ------------------------------------------------------------------------ On Error Resume Next Set objGroup = GetObject _ ("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com") objGroup.GetInfo arrMemberOf = objGroup.GetEx("member") WScript.Echo "Members:" For Each strMember in arrMemberOf WScript.echo strMember Next ------------------------------------------------------------------------ - |
