G
Guest
We have 1 forest with three domains: two tree domains and one child domain. The members of domain users group in both of the tree domains have gray haired icons and the child domain has the normal black haired icon. I found kb281923 that talks about these symptoms when the membership is over 500 members.
However, when I use the below script to enumerate the membership of the domain users group in each of the domains, no user accounts are returned. To verify there were no issues in my script, I tried enumerating a different global group and the scripted worked like a champ. Does anybody know of any reasons why I cannot enumerate the Domain Local group?
If I look at the group with the Domain Users and Computers mmc, the group is populated as you would expect (just the users hair is gray instead of black). Thanks in advance for any help! When I echo out the adspath, the ldap path is correct.
Option Explicit
Dim oGroup, groupmember
Set oGroup = GetObject("LDAP://cn=domain users,cn=Users,dc=MyDomain,dc=root")
wscript.echo ogroup.adspath
For Each groupmember In ogroup.members
wscript.echo groupmember.cn
Next
However, when I use the below script to enumerate the membership of the domain users group in each of the domains, no user accounts are returned. To verify there were no issues in my script, I tried enumerating a different global group and the scripted worked like a champ. Does anybody know of any reasons why I cannot enumerate the Domain Local group?
If I look at the group with the Domain Users and Computers mmc, the group is populated as you would expect (just the users hair is gray instead of black). Thanks in advance for any help! When I echo out the adspath, the ldap path is correct.
Option Explicit
Dim oGroup, groupmember
Set oGroup = GetObject("LDAP://cn=domain users,cn=Users,dc=MyDomain,dc=root")
wscript.echo ogroup.adspath
For Each groupmember In ogroup.members
wscript.echo groupmember.cn
Next