Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query AD for user properties

Status
Not open for further replies.

Alekctx

Technical User
Nov 25, 2002
2
FR
Hi I need a vbs script to retrieve the data stocked in the "Member Of" tab of the "user properties" page in Active Directory.
Anyone done this before
Thanks
alek@france-techno.com
 
This will work.

Set objGroup = GetObject _
("LDAP://cn=John Doe,ou=WorkOu,dc=my-domain,dc=com")

For Each Member in objGroup.GetEx("memberof")
token = Split(Member,",")
WScript.Echo Right(token(0), Len(token(0)) - 3)
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top