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.
ExchangeOutlookEmail Servers

Avatar of undefined
Last Comment

8/22/2022 - Mon
Jeff Glover

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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
Your help has saved me hundreds of hours of internet surfing.