View Logon Statistics
Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2
The Get-LogonStatistics cmdlet retrieves logon information so you can view users or services currently connecting to your Microsoft Exchange Server 2010 servers. Logon statistics include information such as user name, logon time, last access time, and client version.
When you run the cmdlet from a Mailbox server, you don't have to use any parameters. In this case, the cmdlet returns the logon statistics for all mailboxes on all databases on the local server.
Note
Users who log on to their mailboxes using Microsoft Office Outlook Web App aren't connected continuously to the Mailbox server. An Outlook Web App client connects to the server, performs tasks, and then disconnects from the server. Therefore, you may see few or no logon statistics for Outlook Web App, even if users are logged on to the client.
Because the Get-LogonStatistics cmdlet provides a quick snapshot of the connections to Exchange at one specific time, you may want to create a script that runs in Windows Task Scheduler to capture additional data, so you can analyze server and database usage over a specified period of time.
Note
Running the Get-LogonStatistics cmdlet too often may significantly affect the CPU load on the Client Access server.
For more information, see the following topics:
Looking for other management tasks related to user mailboxes? Check out Managing User Mailboxes.
Use the Shell to view logon statistics
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Recipient Provisioning Permissions" section in the Mailbox Permissions topic.
Note
You can't use the EMC to view logon statistics.
This example returns logon statistics for all users connected to the server MBXSVR01.
Get-LogonStatistics -Server MBXSVR01
This example returns logon statistics for a specific user with the SMTP address tony@contoso.com.
Get-LogonStatistics -Identity tony@contoso.com
This example returns logon statistics for all users who reside on the mailbox database MDB01.
Get-LogonStatistics -Database MDB01
This example returns all logon statistics for all processes and mailboxes currently logged on and groups the statistics by the session ID.
Get-LogonStatistics | Group SessionId
For detailed syntax and parameter information, see Get-LogonStatistics.
Logon Statistics Output
By default, the Get-LogonStatistics cmdlet returns the UserName
, ServerName
, LogonTime
, and LastAccessTime
values for each user or process that has logon statistics. The following table lists the information returned if you pipeline the output of the Get-LogonStatistics cmdlet to the Format-List cmdlet.
Logon statistics output
Value | Description |
---|---|
|
This value is always blank. |
|
This value specifies the type of client application making the connection. |
|
If provided by the client application, this value specifies the IP address of the client computer from which the user or service is accessing Exchange. |
|
This value is always |
|
This value specifies the name of the Exchange server initiating the connection. |
|
This value specifies the version of the client application accessing Exchange. |
|
This value specifies the code page that the client application is using to log on. For more information, see Code Pages. |
|
This value specifies how many open attachments there were when the Get-LogonStatistics cmdlet was run. |
|
This value specifies how many open folders there were when the Get-LogonStatistics cmdlet was run. |
|
This value specifies how many open messages there were when the Get-LogonStatistics cmdlet was run. |
|
This value specifies the name of the mailbox database in which the mailbox resides. |
|
This value is always |
|
This value specifies the full name of the mailbox directory. |
|
This value specifies the full user directory name of the account to which this mailbox belongs. |
|
If provided by the client application, this value specifies the IP address of the host server from which the user or service is accessing Exchange. |
|
This value specifies the distinguished name of the mailbox or service connecting to Exchange. |
|
This value specifies whether the command was valid. |
|
This value specifies the last time an action was performed using that logon. |
|
This value is always |
|
This value specifies the language locale of the mailbox. |
|
This value specifies the time and date at which the user or service created the specific logon. |
|
If provided by the client application, this value specifies the MAC address of the network node from which the user or service logged on to Exchange. |
|
This value specifies the distinguished name of the mailbox or service connecting to Exchange. |
|
This value is always |
|
This value specifies the fully qualified domain name (FQDN) of the server. |
|
This value is always |
|
This value is always |
|
This value specifies the name of the server on which the mailbox resides. |
|
This value specifies the unique identity of the session used to identify logons that come from the same session. |
|
This value is always |
|
This value is always |
|
This value is always |
|
This value is always |
|
This value specifies the user name of the mailbox. |
|
This value specifies the user name of the account accessing the mailbox. For example, if the mailbox user shared a calendar with other users, this value specifies the name of the users who logged on to view the calendar. |
© 2010 Microsoft Corporation. All rights reserved.