Exchange 2007-2010 Mailbox Send and Receive Statistics with PowerShell

Exchange 2007-2010 Mailbox Send and Receive Statistics with PowerShell

This template tracks Exchange Mailbox Send/Receive statistics of Exchange 2007-2010 servers with the Mailbox role using PowerShell scripts.

Prerequisites:

  • PowerShell 2.0 and Exchange Management Tools 2007 or 2010 installed on the APM server.
  • The Exchange server must have an Exchange Mailbox role.
  • The APM server and the Exchange server must be in the same domain.

Credentials:

The credentials must be an Exchange Administrator (Organization Manager) account with at least view-only permissions.

Monitored Components

Note: Before using this template, under the Advancedtree collapse [+], you should set the correct platform; either 32 bit or 64 bit, from the dropdown menu. The default it set to 32 bit.

For all monitors: You must specify the correct name of your Exchange user and server in the Script Arguments field of the corresponding PowerShell Monitor. If you fail to do this, the counter will return with an error of "Undefined" status.

For example: If the name of your Exchange server is exchange.mydomain.com, and the user you want to monitor is some.user@domain.sw, the value in the Script Arguments field should be the following: some.user@domain.sw,exchange.mydomain.com

To see the names of your Exchange servers, run the following command in the Exchange Management Shell: Get-ExchangeServer

To see the names of the users, run the following command in Exchange Management Shell: Get-Mailbox

Number of items received by specific user (total)

This component monitor returns the total number of items received by the specified user.

Number of items sent by specific user (total)

This component monitor returns the total number of items sent by the specified user.

Number of items received by specific user during last hour

This component monitor returns the number of items received by the specified user during the last hour.

Number of items sent by specific user during last hour

This component monitor returns the number of items sent by the specified user during the last hour.

Number of items received by specific user during last day

This component monitor returns the number of items received by the specified user during the last day.

Number of items sent by specific user during last day

This component monitor returns the number of items sent by the specified user during the last day.

Number of items received by specific user during last month

This component monitor returns the number of items received by the specified user during the last month.

Number of items sent by specific user during last month

This component monitor returns the number of items sent by the specified user during the last month.

Number of items received by specific user during last polling period

This component monitor returns the number of items received by the specified user during the last polling period.

Number of items sent by specific user during last polling period

This component monitor returns the number of items sent by the specified user during the last polling period.

Portions of this document were originally created by and are excerpted from the following sources:

Microsoft Corporation, “Technet Library,” Copyright Copyright 2012 Microsoft Corporation.  All rights reserved. Available at

http://technet.microsoft.com/en-us/library/bb691338.aspx and http://technet.microsoft.com/en-us/library/bb201689%28EXCHG.80%29.aspx