May 29, 2008 #1 Stephon98caffe Programmer Joined Feb 18, 2005 Messages 25 Location US I am looking for a simple script to print a AD groups members to an excel spread sheet.
May 29, 2008 #2 dm4ever Technical User Joined Jul 3, 2006 Messages 991 Location US What have you tried so far? -------------------------------------------------------------------------------- dm4ever My philosophy: K.I.S.S - Keep It Simple Stupid Upvote 0 Downvote
What have you tried so far? -------------------------------------------------------------------------------- dm4ever My philosophy: K.I.S.S - Keep It Simple Stupid
May 30, 2008 #3 ITPangaeaArchitect MIS Joined Sep 20, 2004 Messages 946 Location US Here ya go: http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true 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+ Upvote 0 Downvote
Here ya go: http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true 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+