?
Solved

DLs and owners

Posted on 2012-12-20
2
Medium Priority
?
295 Views
Last Modified: 2012-12-21
Powershell command to search all the DLs and output a list with the owner(s) of the DLs in a specific OU.
0
Comment
Question by:xmouser
[X]
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
2 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 38711878
0
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 38712012
Use -OrganizationalUnit parameter.. For example..

Get-DistributionGroup -OrganizationalUnit "domain.com/OU/SubOU" -ResultSize Unlimited | Select Name,ManagedBy | Export-Csv C:\test.csv -NoTypeInformation

Open in new window

or
Get-DistributionGroGet-DistributionGroup -OrganizationalUnit "domain.com/OU/SubOU" -ResultSize Unlimited | Select Name,@{N="ManagedBy";E={[string]::join(“;”,$_.managedby)}} | Export-Csv C:\test.csv -NoTypeInformation

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

718 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