EXPERT RESPONSE
You can use a simple VBScript to return this, similar to the following:
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")
i = 0
For Each strMember in arrMemberOf
i = i + 1
Next
WScript.Echo(i)
|