Report the size of every mailbox in an OU

Some organizations keep tighter rein on their users than others. If you want to keep tabs on who is close to their mailbox quotas or who is using more space, or if you’re preparing for a migration to a new email platform and need to know how much data you’ll be moving, this one liner will give you the size of every mailbox in a particular OU:

[PS] C:\Windows\system32>Get-Mailbox | ?{$_.OrganizationalUnit -like “*OUName*”} | Get-MailboxStatistics | Select DisplayName, ItemCount, TotalItemSize

Have fun, kids. Stay safe out there.

Leave a Reply

Your email address will not be published. Required fields are marked *