+ Reply to Thread
Results 1 to 8 of 8
  1. Junior Member
    Join Date
    Jul 2010
    Posts
    15
    #1

    Post exporting Distribution group members from AD

    How we can export the distribution group members in word or excel format from the active directory in windows 2003 server environment?

    I have a distribution group name x and it is in "users" OU. The company domain name is mycompany.com.au

    i try to google it and applied some solutions but none of those worked?

    Any idea?

    BR, Ahmad
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member
    Join Date
    Oct 2005
    Posts
    1,030

    Certifications
    CCNP (R&S/Voice), CCDP, CCIP, VCP, NCDA, MCSE, CCNA Security
    #2
    I'd use PowerShell with the Quest Cmdlets. The command would be something line this:

    get-qadgroup groupname | get-qadgroupmember | export-csv C:\path\file.csv

    You could also omit the export-csv and just pipe it into a text file.
    Reply With Quote Quote  

  4. Junior Member
    Join Date
    Jul 2010
    Posts
    15
    #3
    I am trying to get this using the LDIFDE command but its no working.

    I want to avoid any installation on my server.



    Reply With Quote Quote  

  5. Virtual Member undomiel's Avatar
    Join Date
    Sep 2007
    Location
    Bellevue, WA
    Posts
    2,813

    Certifications
    MCSA:2008, VCP4/5, CCA (XS), MCITP: EA/VA, MCSE, MCSA, Linux+, Security+, Server+, A+
    #4
    dsquery group -name "x" | dsget group -members > C:\groupmembers.txt
    Reply With Quote Quote  

  6. Junior Member
    Join Date
    Jul 2010
    Posts
    15
    #5
    Thank you undomiel, could you please let me know how i can get the email address of the members of that particular OU.
    Reply With Quote Quote  

  7. Virtual Member undomiel's Avatar
    Join Date
    Sep 2007
    Location
    Bellevue, WA
    Posts
    2,813

    Certifications
    MCSA:2008, VCP4/5, CCA (XS), MCITP: EA/VA, MCSE, MCSA, Linux+, Security+, Server+, A+
    #6
    dsquery group -name "x" | dsget group -members | dsget user -email > C:\groupmembersemail.txt

    Take a look at dsget user /? for more options of what info you can get.
    Reply With Quote Quote  

  8. Junior Member
    Join Date
    Jul 2010
    Posts
    15
    #7
    undomeil, dear you are diamond

    Its done.
    Reply With Quote Quote  

  9. Junior Member Registered Member
    Join Date
    May 2017
    Posts
    1
    #8

    Default export the active ad group members in windows 2003 server

    export the active ad group members in windows 2003 server, I have a cmd to export the group member user, But dont have idea about applying filters here is the one i use to export group member without filter

    dsquery group -name "groupname" | dsget group -members > C:\filename.csv
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks