Link to home
Start Free TrialLog in
Avatar of Pau Lo
Pau Lo

asked on

shell command to get an inventory of all mailboxes and distribution lists.

is there a way in exchange server to get a full report of all mailboxes, which AD account they are associated with (mailbox owner?), and all distribution groups. Just a really basic list of all mailboxes and distribution groups in a single report, showing type, e.g. this is a mailbox, this is a distribution list, written to CSV. Similar I suppose to a full version of the global address list in outlook but also showing hidden entries, but to easily show which items are mailboxes and which are distribution lists.
Avatar of Jeff Glover
Jeff Glover
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
create a folder on your c:drive named Temp   example  c:\Temp
Run the following command in your Exchange Management Shell

Get-Recipient -ResultSize Unlimited | Select DisplayName, PrimarySmtpAddress,SamAccountName,RecipientType,ManagedBy | Sort DisplayName | Export-csv 'c:\temp\RecipientResults.csv' -notypeinformation