You are currently offline, waiting for your internet to reconnect

New-MailboxSearch creates a folder hierarchy in Exchange Server 2010

Consider the following scenario:
  • You use the New-MailboxSearch cmdlet to create a mailbox search in a Microsoft Exchange Server 2010 organization.
  • You run the cmdlet with the ExcludeDuplicateMessages parameter.
  • The ExcludeDuplicateMessages parameter is set to false.
  • You perform the search across all the mailboxes in the organization. 
Note The searches are performed across all mailbox servers in the Exchange organization unless you specify the SourceMailboxes parameter.

In this scenario, the New-MailboxSearch cmdlet creates a folder hierarchy of all the mailboxes that match the search criteria in the target mailbox. 
Screenshot for the folder hierarchy of all the matched mailboxes

This behavior is by design. 
More information
If the ExcludeDuplicateMessages parameter is set to False, the New-MailboxSearch cmdlet returns a list of all mailboxes that match the search criteria. To prevent a folder hierarchy of all the mailboxes that match the search criteria in the target mailbox from being created, set the ExcludeDuplicateMessages parameter to true. For example:
New-MailboxSearch –Name "NewSearch" –SearchQuery '"Team meet"' –TargetMailbox "administrator" –ExcludeDuplicateMessages:$True –LogLevel:Full
Note The SearchQuery parameter specifies a search string or a query that is formatted by using Advance Query Syntax (AQS). If this parameter is empty, all messages from all mailboxes that are specified in the SourceMailboxes parameter are returned.

The LogLevel parameter is used to log the search results to CSV files. The CSV files will contain the list of mailboxes that match the search criteria. The CSV file will be created multiple times as the search is in progress, and each CSV file will be delivered in a separate email message.


Article ID: 2846860 - Last Review: 09/03/2013 11:17:00 - Revision: 3.0

Microsoft Exchange Server 2010 Enterprise, Microsoft Exchange Server 2010 Standard

  • kbsurveynew kbtshoot kbexpertiseinter KB2846860