Exchange

Large Mailboxes (Exchange 2003)

Script Type: VBScript

Large Mailboxes (Exchange 2007 or Later)

Script Type: PowerShell

The script queries all Mailboxes on the server failing where any have exceeded the specified threshold (MB).

For ease of investigation the Extra column contains a summary of the script result and when clicked displays additional details (name and size) of any Mailboxes matching the failure criteria.

Parameter Description

Mailbox Size Threshold

Number of megabytes above which the Mailbox is reported

Script Timeout Range

Range: 1 - 3600 seconds (default 120 seconds)

Prerequisites

The Agent must be installed on the server running Exchange.

For Large Mailboxes (Exchange 2007 or Later) the PowerShell Microsoft.Exchange.Management.Powershell.Admin snap-in is required to access the Exchange resources and retrieve the Mailbox information.

Mail Queue Size (Exchange 2003)

Script Type: VBScript

Mail Queue Size (Exchange 2007 or Later)

Script Type: PowerShell

Mail Queue Size (Exchange 2003)

Script Type: VBScript

Mail Queue Size (Exchange 2007 or Later)

Script Type: PowerShell

The script reads the number of messages in the specified mail queue (or all mail queues where Check Each Queue is selected) failing where the number of messages exceed the specified threshold. When configuring the script enter the Queue Name* or Check Each Queue along with the Threshold trigger.

For ease of investigation the Extra column contains a summary of the script result and when clicked displays additional details (name and number of messages) of any discovered Mailboxes matching the Queue Name criteria regardless of whether the threshold was exceeded.

Parameter Description

Check Each Queue

Queries each queue

Queue Name*

System Name of specific queue

Threshold

Number of messages above which the script fails

Script Timeout Range

Range: 1 - 3600 seconds (default 120 seconds)

Prerequisites

The Agent must be installed on the server running Exchange (Exchange 2003) or with the role of Exchange Transport Server (Exchange 2007 or newer). In addition to this, the target Mail Queue must exist on the server.

  • Mail Queue Size (Exchange 2003) the script uses WMI to retrieve the Mail Queue information and requires access to the WinNTSystemInfo WMI Provider.
  • Mail Queue Size (Exchange 2007 or Later) the PowerShell Microsoft.Exchange.Management.Powershell.Admin snap-in is required to access the Exchange resources and retrieve the queue information.

Notes

The script fails where it cannot find the specified Mail Queue or connect to the WMI Provider (Exchange 2003) or PowerShell snap-ins (Exchange 2007 or newer).

* When entering a specific Queue Name please use the System Name of the Mail Queue.

One option if unsure of the System Name of the target Mail Queue is to enable the Check Each Queue option, as this returns a list of all discovered Mailboxes on the server regardless of queue length. Once the script runs and uploads this data, the System Name for the required Mail Queue may be identified from the Extra column on the Dashboard.

For Exchange 2007 and later, a list of the Mail Queues available on the server may be retrieved by running the cmdlet Get-Queue from the Exchange Management console.

Information on Exchange Queue names can be found at: Using SMTP Queues to Troubleshoot Message Flow

Store Control - Exchange 2003

Script Type: VBScript

Store Control - Exchange 2007 (or later)

Script Type: PowerShell

This script contains three options and can be used check whether the Mailstore is mounted (failing where it is not) as well as mount or dismount the specified MailStore.

Parameter Description

Operation

Mount Mailstore

Dismount Mailstore

Check Mailstore is mounted

Exchange Mailstore Name

Name of the Mailstore to perform the operation against

Script Timeout Range

Range: 1 - 3600 seconds (default 120 seconds)

Prerequisites:

Exchange Store Control - Exchange 2007 (or later) requires the following Exchange Management snapins: Get-MailboxDatabase, Mount-Database and Dismount Database

Please note, the Exchange Store Control script does not detect or report the status of Public Folders.

 

General Notes

PowerShell scripts run with the -ExecutionPolicy Bypass argument set to ensure execution on computers with default ExecutionPolicy settings. If problems are experienced when executing these PowerShell scripts, please set the PowerShell Execution Policy to RemoteSigned or lower.

If problems are experienced when running an Exchange script, please try elevating the permissions of the Agent service from the services console (Windows button + r then enter services.msc), for example to run it under the Administrator account.

Please note, we are not responsible for the content of external sites.