Solved

Export Manager Email Distribution List

Posted on 2006-10-26
5
562 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 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

21 Experts available now in Live!

Get 1:1 Help Now