Exchange

Booysen Booysen
Booysen Booysen used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Commented:
James HIT Director
Commented:
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.
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017
Commented:
Hi,
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

MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Commented:
I believe this can be  closed by splitting the points as all of the contributed.

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