Sometimes we need to find when user logged to mailbox for the last time.
To achieve this we need to use Get-MailboxStatistics CMDlet
Below command will display LastLogonTime for mailbox JSmith:
Get-MailboxStatistics JSmith | select DisplayName, LastLogonTime
If we are using shared mailboxes we also should display user account which were used to log to mailbox.
This command will display mailbox name, LastLogonTime and user account used to logon:
Get-MailboxStatistics JSmith | select DisplayName, LastLogonTime, LastLoggedOnUserAccount
When we want to get logon time information for all mailboxes in database or in mailbox server MX01, we need to use Get-Mailbox CMDlet, and pipe result to Get-MailboxStatistics