O'Reilly logo

Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required