Results 1 to 3 of 3

Thread: Distribution Groups - export lists and members

  1. #1
    Join Date
    Oct 2005
    Posts
    21

    Distribution Groups - export lists and members

    I need a small piece of information from you. I’m running 38 AD servers and 22 Exchange servers around 20 states. Now as it is spread all over, I wanted to know if there is any way I can export he distribution groups and the members to an organized csv or some other format? If yes, please post the procedure.

    Thank you.

  2. #2
    Join Date
    Jan 2006
    Posts
    154

    Re: Distribution Groups - export lists and members

    I have enever used but as per my research there is a command line utility named “AdFind” can help you with the same. You can get the same from here

    The filter for distribution groups would be (watch line wrapping, this is one line):
    (&(objectCategory=group)(!groupType:1.2.840.113556.1.4.803:=2147483648))

    Apart from this you can also retrieve the the member multi-valued attribute, which would be a collection of the Distinguished Names of all direct members (ignoring group nesting).

  3. #3
    Join Date
    Sep 2005
    Posts
    140

    RE: Distribution Groups - export lists and members

    Hey guys, i use a vb script like that:

    On Error Resume Next

    Set objGroup = GetObject _
    ("LDAP://cn=GroupName,ou=someou,dc=fabrikam,dc=com")
    objGroup.GetInfo

    arrMemberOf = objGroup.GetEx("member")

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

    save it with a name like test.vbs and run from a command prompt
    cscript.exe test.vbs >out.txt

    Hope it helps.

Similar Threads

  1. Find Empty Distribution Lists
    By Khongordzol in forum Active Directory
    Replies: 3
    Last Post: 24-09-2010, 06:15 PM
  2. Replies: 3
    Last Post: 17-04-2009, 06:12 PM
  3. Extract members and groups from AD
    By Rondo in forum Active Directory
    Replies: 8
    Last Post: 16-01-2009, 02:44 AM
  4. export AD Groups and Members in to Excel.
    By Lion in forum Windows Server Help
    Replies: 3
    Last Post: 27-05-2008, 12:39 PM
  5. Distribution List Members Export
    By BuvDeep in forum Active Directory
    Replies: 3
    Last Post: 02-05-2006, 07:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,629,946.07724 seconds with 17 queries