Checking Exchange Server 2007,2010 User Mailbox Sizes

If you are like me and you like to keep track of your users’ mailbox sizes
Here are two very important PowerShell commands, which I find very useful

Both of those two commands will list the following
Display Name, LastLoggedOnUserAccount, ItemCount, TotalItemSize, LastLogonTime, LastLogoffTime

This command will sort the results by “Mailbox Size” Descending
Get-MailboxStatistics -database “MAILBOXDATABASE_NAME” | Sort-Object TotalItemSize -Descending | Select DisplayName, LastLoggedOnUserAccount, ItemCount, TotalItemSize, LastLogonTime, LastLogoffTime | Format-Table

This command will sort the results by “LastLogon Time” Descending
Get-MailboxStatistics -database ” MAILBOXDATABASE_NAME ” | Sort-Object LastLogonTime -Descending | Select DisplayName, LastLoggedOnUserAccount, ItemCount, TotalItemSize, LastLogonTime, LastLogoffTime | Format-Table

For the complete list of parameters and options for the command Get-MailboxStatistics
Click here http://technet.microsoft.com/en-us/library/bb124612(v=exchg.141).aspx

Disclaimer.
The information in this article is provided “AS IS” with no warranties, and confers no rights.