Solved

Export Manager Email Distribution List

Posted on 2006-10-26
5
566 Views
Last Modified: 2013-12-03
Hello,

I know you can export all user in AD but can you export only Manager Email Distribution List?

thank you
0
Comment
Question by:HOPE-IT
  • 2
5 Comments
 
LVL 15

Expert Comment

by:wwwally
ID: 17815413
Use the following and the users wil show in the text file.
dsquery group -name YourGroupname | dsget group -members | dsget user -display > c:\output.txt

Good luck,

Walter
0
 
LVL 1

Author Comment

by:HOPE-IT
ID: 17815442
Hi Walter,

Could you please show step-by-step how to get to it?

thanks again
0
 
LVL 15

Accepted Solution

by:
wwwally earned 300 total points
ID: 17815775
Just open a cmd and type the following line:
dsquery group Yourgroupname (this is the name of the distribution group) | (pipe) dsget goup -members (this wil show the members of the group) | dsget users -display (will show the display name of the users who are a member of the group) > c:\output.txt (this will output it to a text file)

You can start on a windows 2003 machine at the command promt by typing " dsquery group groupname" and see the output on your screen.
this output will be piped to the next ds command (dsget group -members) for the next stage of the output.
In the last part you can define what you want to see of the users (-displayname -email -office).

For mor info on dsget and dsquery use the dsget /? dsget user /? dsquery group /? enz..

Good luck,

Walter
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

770 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