Good day

i want to pull  a list of all e-mail users. With their mail box sizes.
And also the databases sizes. Of all the  mail databases.. and i want to know how to do this.
Booysen BooysenAsked:
Who is Participating?
MAS (MVE)Technical Department HeadCommented:
James HConnect With a Mentor IT DirectorCommented:
Here is a script I use:

Get-MailboxStatistics -database <<insert name here>> | where {$_.TotalItemSize -gt 2GB} | select DisplayName,  ItemCount, totalitemsize

now you can remove the where if you don't want it. I use it to filter for higher mailbox users specifically.
MAS (MVE)Connect With a Mentor Technical Department HeadCommented:
If you want just email address and mailbox size command in the above thread will do that.
if you want the size of the database which is not part of mailboxstatistics, You can try this.
Get-MailboxDatabase -Status | select Name,DatabaseSize | Export-Csv c:\export\mailboxes.csv

Open in new window

MAS (MVE)Technical Department HeadCommented:
I believe this can be  closed by splitting the points as all of the contributed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.