DLs and owners

Powershell command to search all the DLs and output a list with the owner(s) of the DLs.
xmouserAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SubsunConnect With a Mentor 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

0
All Courses

From novice to tech pro — start learning today.