TechnoGist

gist (jst)# The central idea; the essence…

Archive for the ‘Get-Mailbox’ tag

Exchange 2007 Mailbox Access Times

without comments

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.

Written by Paul Brice

August 14th, 2009 at 9:34 am