Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DLs and owners

Posted on 2012-12-20
1
331 Views
Last Modified: 2012-12-20
Powershell command to search all the DLs and output a list with the owner(s) of the DLs.
0
Comment
Question by:xmouser
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 38710918
If you are having exchange 2007 or 2010 then run the following command in Exchange management Shell..

To list the details
Get-DistributionGroup -ResultSize Unlimited | Select Name,ManagedBy

Open in new window

To export the details to csv file..
Get-DistributionGroup -ResultSize Unlimited | Select Name,ManagedBy | Export-Csv C:\test.csv -NoTypeInformation

Open in new window


For exchange 2010
Get-DistributionGroup-ResultSize Unlimited | Select Name,@{N="ManagedBy";E={[string]::join(“;”,$_.managedby)}} | Export-Csv C:\test.csv -NoTypeInformation

Open in new window

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 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