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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print group members to a excel spreed sheet

Status
Not open for further replies.

Stephon98caffe

Programmer
Feb 18, 2005
25
US
I am looking for a simple script to print a AD groups members to an excel spread sheet.
 
What have you tried so far?

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Here ya go:


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")

WScript.Echo "Members:"
For Each strMember in arrMemberOf
WScript.echo strMember
Next


this is ms base code, so it definitely needs adjusted to work (typically anyway)



-Brandon Wilson
MCSE00/03, MCSA:Messaging00, MCSA03, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top