The Personal Website of Matthew Reeves

Miscellaneous Exchange Powershell Commands

Create a list of all mailboxes on a server, sorted by size on disk: Get-MailboxStatistics -Server '<server name>' | where {$_.ObjectClass -eq “Mailbox”} | Sort-Object TotalItemSize -Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}} -auto >> “c:\<output file name>.txt”