Export members of a distribution group to text file – help please Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Microsoft Networking and Management Services › Active Directory › Export members of a distribution group to text file – help please This topic has 5 replies, 5 voices, and was last updated 7 years, 6 months ago by [email protected]. Viewing 1 post (of 1 total) Author Posts Dead CellMember May 22, 2013 at 10:18 am #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 Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.