Search-Mailbox cmdlet with Attachment keyword lists all items that contain the query string of "attachment"

Symptoms
When you run the Search-Mailbox cmdlet together with the Attachment property keyword in Exchange Server 2013, the search results list all items that contain the "attachment" query string.
Cause
This issue occurs because the Attachment property is not restricted to only search attachments in email messages.
Resolution
To fix this issue, install Cumulative Update 12 for Exchange Server 2013.

After you install this cumulative update, you can use the AttachmentNames property keyword to limit the search scope to only the items that have the specified attachment file name. For example, you can use the AttachmentNames property keyword as in the following example:

Search-Mailbox user_name -EstimateResultOnly -SearchQuery AttachmentNames:attachment_name
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology that Microsoft uses to describe software updates.
Properties

Article ID: 3134894 - Last Review: 03/15/2016 15:50:00 - Revision: 1.0

Microsoft Exchange Server 2013 Enterprise, Microsoft Exchange Server 2013 Standard

  • kbqfe kbsurveynew kbexpertiseinter kbfix KB3134894
Feedback