Solved

DLs and owners

Posted on 2012-12-20
2
288 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
ID: 38711878
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange, scripts 30 79
Powershell Script to list Permissions 7 34
problems with mysql ODBC Connector and vbscript 4 28
change the windows script file to BAT 10 31
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

20 Experts available now in Live!

Get 1:1 Help Now