We help IT Professionals succeed at work.

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

pma111
pma111 asked
on
79 Views
1 Endorsement
Last Modified: 2019-03-04
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.
Comment
Watch Question

Sr. Systems Administrator
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
FOXActive Directory/Exchange Engineer
CERTIFIED EXPERT
Top Expert 2015

Commented:
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
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.