Exchange 2007 Mailbox Access Times

Here is a quick one liner to gain the “Logon” and “LogOff” times for all mailboxes hosted on a Exchange 2007 mailbox server. All mailboxes and their access times will be exported into a .csv file for reference.

Note: Replace %ServerName% with a valid Exchange 2007 Mailbox Server in your Org.

Get-Mailbox | Where{$_.ServerName -eq '%ServerName%'} | Get-MailboxStatistics | Select-Object ServerName,StorageGroupName,DatabaseName,DisplayName,LastLogonTime,LastLogOffTime,LastLoggedOnUserAccount | Export-CSV "C:\MailboxAccessTimes.csv" -NoTypeInformation

Hope this helps.

All information is provided on an AS-IS basis, with no warranties and confers no rights.

Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">