Wednesday, September 23, 2015

Exchange 2010 - Get the last logon for a list of mailboxes

So, after playing around with a request from my client, I've put a cmdlet together. This Powershell command allows the admin to provide a list of mailbox display names for the last LOGON statistics. The client is attempting to determine which mailboxes should be migrated, by looking at the last LOGON statistics. I used the following steps to help out:

1.) gather a list of mailbox display names for migration consideration

2.) run the following Powershell command to get the last LOGON stats for the list of mailboxes.

Get-Content <list file path> | Get-Mailbox -resultsize unlimited | Get-Mailboxstatistics | select displayname, lastlogontime | Export-CSV <export file path>






-keep building

4 comments: