New-MailboxSearch creates a folder hierarchy in Exchange Server 2010

Article translations Article translations
Article ID: 2846860 - View products that this article applies to.
Expand all | Collapse all

Symptoms

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. 
Collapse this imageExpand this image
Screenshot for the folder hierarchy of all the matched mailboxes


Cause

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.

Properties

Article ID: 2846860 - Last Review: September 3, 2013 - Revision: 3.0
Applies to
  • Microsoft Exchange Server 2010 Enterprise
  • Microsoft Exchange Server 2010 Standard
Keywords: 
kbsurveynew kbtshoot kbexpertiseinter KB2846860

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com