(#exchange) check database size and mailbox size

check exchange database size

Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize

check mailbox size

Get-MailboxStatistics -Server ‘Mailbox Servername’ | where {$_.ObjectClass -eq “Mailbox”} | Sort-Object TotalItemSize -Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}}  -auto >> “c:\Temp\mailbox_size.txt”