Is there a utility that will total the number of users in a specified group in Active Directory?
Is there a utility that will total the number of users in a specified group in Active Directory? I need to know how many users are in one of our groups but I wanted to know if there was a utility to count them instead of doing it manually.
You can easily retrieve this information using VBScript, as follows:
Set objGroup = GetObject _
("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com")
objGroup.GetInfo
arrMemberOf = objGroup.GetEx("member")
WScript.Echo("Group members: " & arrMemberOf.length)
This was first published in April 2006
Join the conversationComment
Share
Comments
Results
Contribute to the conversation