S
shawn.dba
Hello. Thank you in advance for your time.
I'm trying to query a set of groups in ActiveDirectory and output the
members of each group. I'm not receiving output. The object tab of one
object is listed as
uscol.ad.companyname.com/Global Groups/SYS_Authority Global
Groups/SYS_Authority_BROKERAGE.
My code is as follows:
On Error Resume Next
gName = "SYS_Authority_Brokerage"
ou1 = "Global Groups"
ou2 = "SYS_Authority Global Groups"
Set objGroup = GetObject _
("LDAP://cn=" & gName & ",ou=" & ou1 & ", ou=" & ou2 &
",dc=uscol,dc=ad,dc=companyname,dc=com")
objGroup.GetInfo
arrMemberOf = objGroup.GetEx("Member")
Response.Write ""
Response.Write gName
Response.Write "<td>"
For Each strMember in arrMemberOf
Response.Write strMember
Response.Write "<br>"
Next
arrMemberOf = 0
Response.Write "</td>"
I'm trying to query a set of groups in ActiveDirectory and output the
members of each group. I'm not receiving output. The object tab of one
object is listed as
uscol.ad.companyname.com/Global Groups/SYS_Authority Global
Groups/SYS_Authority_BROKERAGE.
My code is as follows:
On Error Resume Next
gName = "SYS_Authority_Brokerage"
ou1 = "Global Groups"
ou2 = "SYS_Authority Global Groups"
Set objGroup = GetObject _
("LDAP://cn=" & gName & ",ou=" & ou1 & ", ou=" & ou2 &
",dc=uscol,dc=ad,dc=companyname,dc=com")
objGroup.GetInfo
arrMemberOf = objGroup.GetEx("Member")
Response.Write ""
Response.Write gName
Response.Write "<td>"
For Each strMember in arrMemberOf
Response.Write strMember
Response.Write "<br>"
Next
arrMemberOf = 0
Response.Write "</td>"