export groups of a specific AD user.

Posted on 2012-09-20
Last Modified: 2012-10-02
Can someone please advise how to list the groups/DLs of a specific AD user?

Question by:nav2567
    LVL 57

    Accepted Solution

    You could use built in tools like the ds tools

    dsquery user -name "UserName" | dsget user -memberOf

    I like adfind too, powershell and adinfo (free GUI) are other good methods.


    LVL 18

    Assisted Solution

    by:Sushil Sonawane
    Please refer below link for the Tools to export users and groups active directory

    LVL 39

    Assisted Solution

    by:Krzysztof Pytko
    Just only to extend Mike's answer for better output, you may use below syntax
    dsquery user -samid "UserName" | dsget user -memberOf | dsget group -name -scope -desc >>c:\groups.txt

    Open in new window


    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    At least once a month I see a Question in one of the Windows Server related Zones asking about Best Practices for GPO Security.  I have been in IT for 20 years, and a Sys Ad for over 15.  I know this will sound cliché, but this is mostly a preferenc…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now