Checking mailbox logon statistics
If you have worked with Exchange 2000 or 2003, you probably remember that you could easily view several mailbox-related details for each mailbox under the Logons node of the Exchange System Manager. These details included the username, last access time, and more. In this recipe, we will take a look at how we can gather some of this information using the Get-LogonStatistics
cmdlet.
How to do it...
The following command will provide a logon statistics report for all mailboxes in the organization:
Get-MailboxServer | Get-LogonStatistics | Select UserName,ApplicationId,ClientVersion,LastAccessTime
How it works...
The Get-LogonStatistics
cmdlet can be useful for doing some basic checks on client logons, but the information returned from the previous command can be a little confusing and might seem inaccurate. For example, the ClientVersion
property returned for each logon will always be reported as the same version number for end-user logons. This is due to...