DLs and owners

xmouser
xmouser used Ask the Experts™
on
Powershell command to search all the DLs and output a list with the owner(s) of the DLs.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Infrastructure Architect
Commented:
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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial