Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-15

Use the Get-MailboxFolderStatistics cmdlet to retrieve information about the folders in a specified mailbox, including the number and size of items in the folder, the folder name and ID, and other information.

Syntax

Get-MailboxFolderStatistics -Identity <MailboxIdParameter> [-DomainController <Fqdn>] [-FolderScope <Nullable>]

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter

The Identity parameter specifies the identity of the mailbox. You can use the following values:

  • GUID

  • ADObjectID

  • Distinguished name (DN)

  • Domain\Account

  • User principal name (UPN)

  • LegacyExchangeDN

  • Simple Mail Transfer Protocol (SMTP) address

  • Alias

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command.

FolderScope

Optional

System.Nullable

The FolderScope parameter specifies the scope of the search by folder type. Valid parameter values are as follows:

  • All

  • Calendar

  • Contacts

  • ConversationHistory

  • DeletedItems

  • Drafts

  • Inbox

  • JunkEmail

  • Journal

  • ManagedCustomFolder

  • Notes

  • Outbox

  • RssSubscriptions

  • SentItems

  • SyncIssues

  • Tasks

If the ManagedCustomFolder parameter value is entered, the command will return the output for all managed custom folders.

Detailed Description

To run the Get-MailboxFolderStatistics cmdlet, the account you use must be delegated the following:

  • Exchange View-Only Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Note:
The Get-MailboxFolderStatistics cmdlet should not be confused with the Get-MailboxStatistics (RTM) cmdlet.

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

In this example, the Get-MailboxFolderStatistics cmdlet is used without the FolderScope parameter to retrieve all the information about the user named Chris in the Contoso domain.

Copy Code
Get-MailboxFolderStatistics -Identity contoso\chris