Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Exchange Server 2010 : Generating Reports (part 2) - Reporting Mailbox Folder Statistics

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
5/20/2011 11:42:19 AM

2. Reporting Mailbox Folder Statistics

If you need to generate a report that presents information about the folders in a specific mailbox, including the number and size of items in the folder, the folder name and identity, and other information, you can use the Get-MailboxFolderStatistics EMS cmdlet.

You can identify the mailbox by specifying its Global Unique Identifier (GUID), Active Directory object identity (ADObjectID), distinguished name (DN), domain\account information, user principal name, LegacyExchangeDN, Simple Mail Transport Protocol (SMTP) address, or alias. Optionally, you can use the DomainController parameter to specify the fully qualified domain name of the domain controller that retrieves data from Active Directory. For example, the following command returns mailbox folder statistics for the Kim Akers mailbox:

Get-MailboxFolderStatistics -Identity "Kim Akers"

Figure 8 shows some of the output from this command.

Figure 8. Listing folder statistics for a mailbox


Using the Get-MailboxFolderStatistics cmdlet without filtering the information returns a large number of statistical values in a format that is not well suited to a report. As with the Get-MailboxStatistics cmdlet, you can use the FL or FT PowerShell cmdlets to refine the information. For example if you want to list the name of each folder in the Kim Akers mailbox and the number of items in each folder, you would enter the following command:

Get-MailboxFolderStatistics -Identity "Kim Akers" | FT Name,NumberOfItems

Figure 9 shows the output from this command. Note that there were no items in any of the folders in this mailbox when this command was entered. This can happen on a small test network, but you are unlikely to obtain the same result on a production Exchange organization.

Figure 9. Tabulating folder statistics for all folders in a mailbox


Sometimes you are interested in one or more specific folders in a mailbox. You can use the FolderScope parameter to define the folders in which you are interested. The FolderScope parameter specifies the scope of the search by folder type. Valid parameter values include the following:

  • All

  • Calendar

  • Contacts

  • ConversationHistory

  • DeletedItems

  • Drafts

  • Inbox

  • JunkEmail

  • Journal

  • ManagedCustomFolder

  • Notes

  • Outbox

  • RecoverableItems

  • RssSubscriptions

  • SentItems

  • SyncIssues

  • Tasks

If the ManagedCustomFolder value is used, the command returns the output for all managed custom folders. If the RecoverableItems value is entered, the command returns the output for the Recoverable Items folder and the Deletions, Purges, and Versions subfolders.

The following command returns the folder statistics for the Calendar folder in the Don Hall mailbox:

Get-MailboxFolderStatistics -Identity "Don Hall" -FolderScope Calendar

Figure 10 shows the output from this command.

Figure 10. Folder statistics for the Calendar folder in the Don Hall mailbox


You can decide whether you want a command to return the dates of the oldest and newest items in each folder by specifying the IncludeOldestAndNewestItems parameter. This can take the value $true or $false.

As with commands based on the Get-MailboxStatistics cmdlet, you can redirect the output from Get-MailboxFolderStatistics commands into .txt or .csv files for analysis by other software packages. You can use the Sort-Object and Select-Object PowerShell cmdlets to list folders in order of size or item count and to list, say, the five largest or smallest folders.

If you need to analyze the folders on several mailboxes (for example, to list the mailboxes with the largest DeletedItems folders), you can retrieve mailboxes using the Get-Mailbox EMS cmdlet and then use the ForEach-Object PowerShell cmdlet  to obtain folder statistics for each mailbox. You could, for example, use the Where-Object PowerShell cmdlet to list all mailboxes that have items in their Outboxes.

Other -----------------
- SharePoint 2010 PerformancePoint Services : Using Windows PowerShell and Cmdlets (part 2) - Cmdlet Samples
- SharePoint 2010 PerformancePoint Services : Using Windows PowerShell and Cmdlets (part 1) - Cmdlets Available Out of the Box
- BizTalk 2010 Recipes : Administration and Operations - Restarting the BizTalk Host Instance(s)
- BizTalk 2010 Recipes : Administration and Operations - Tracking Messages
- BizTalk 2010 Recipes : Administration and Operations - Debugging Orchestrations
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 4) - Using Exchange Server ActiveSync
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 3)
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 2)
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 1) - Using Telnet to Test SMTP Communication
- Backing Up Windows Server 2008 R2 Role Services (part 3)
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server