Exchange Mailbox Stats (Last Logon)

Print out basic stats for mailboxes such as the last logon value, and the AD user account that accessed the mailbox;

Get-MailboxStatistics | sort-object LastLogonTime | fl DisplayName, LastLogonTime, LastLoggedOnUserAccount, @{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}

Example output:

DisplayName             : Test User 1
LastLogonTime           : 5/1/2011 7:23:21 AM
LastLoggedOnUserAccount : ADDOMAIN\tuser1
TotalItemSize(MB)       : 391

DisplayName             : Father Christmas
LastLogonTime           : 5/1/2011 7:28:05 AM
LastLoggedOnUserAccount : ADDOMAIN\santa
TotalItemSize(MB)       : 200

Previous page: Exchange DB Size
Next page: Export to PST