exchange

pramod1
pramod1 used Ask the Experts™
on
Is there a way to dump a list of the distribution groups in Exchange 2007 and the associated owner (person who has the ability to add/remove users)?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
FOXActive Directory/Exchange Engineer
Top Expert 2015

Commented:
This powershell script should be able to help you out with your needs

ref link:https://gallery.technet.microsoft.com/office/Export-all-distribution-707c27eb
Systems Engineer
Top Expert 2016
Commented:
This command should output to a CSV file all distribution groups with who it is managed by and if the group is open or closed.  If join restriction is closed, then only the managers are able to add group members. If depart restriction is open, any one can leave the group at any time.  By default the settings for join is closed and depart is open.

Get-DistributionGroup | Select-Object Name,@{Expression={$_.ManagedBy};Label="ManagedBy";},MemberJoinRestriction,MemberDepartRestriction | Export-Csv C:\DistroOwners.csv -NoTypeInformation

Open in new window

Author

Commented:
i just want list of the distribution groups in Exchange 2007 and the associated owner
FOXActive Directory/Exchange Engineer
Top Expert 2015

Commented:
Very well use Todd's and take off MemberJoinrestriction and Memberdepartrestriction

Get-DistributionGroup | Select-Object Name,@{Expression={$_.ManagedBy};Label="ManagedBy";} | Export-Csv C:\DistroOwners.csv -NoTypeInformation

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