Export members of a distribution group to text file – help please

Home Forums Microsoft Networking and Management Services Active Directory Export members of a distribution group to text file – help please

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Dead Cell
    Member
    #161572

    Hi All

    I need a bit of help using dsquery and dsget to extract all users in a specific distribution group.

    Here is the location of the distribtution group in AD.
    Test.com>Distribution Groups>Replicated>IT Team

    So the distribution group is called IT Team and what I want to be able to do is export to a text file the names of all users who belong to this group.

    I have tried many variations such as:
    dsquery group “ou=replicated, ou=distribution groups, dc=test, dc=com” | dsget -members >users.txt

    But nothing seems to work.

    Would really appreciate some help on this and it would also help me understand these two commands better perhaps.

    Many thanks in advance.

    DC

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.