Solved

DLs and owners

Posted on 2012-12-20
2
287 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
2 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
Comment Utility
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
Comment Utility
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

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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Set OWA language and time zone in Exchange for individuals, all users or per database.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

10 Experts available now in Live!

Get 1:1 Help Now