This is a very simple one liner to retrieve the following from all mailboxes in the organisation
- Users Name
- Total Item Size
- Item Count
- Which DB the MB lives on
- Which Server the DB is on
[cc lang=’Powershell]
get-mailbox -resultsize unlimited | get-mailboxstatistics | select DisplayName,TotalItemSize,Itemcount,Database,ServerName | export-csv “C:\Get-MailboxesinOU results.csv” -NoTypeInformation
[/cc]