Sunday, October 4, 2015

Total Mailbox Item Size for a list of Mailboxes

Here's a quick cmdlet for gathering the mailbox total item size for a list of mailboxes:

Get-Content <filename path> | Get-Mailbox | Get-MailboxStatistics | select-object displayname, {$_.TotalItemSize.Value.ToKB()} | Export-CSV <export file path>