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

Platí pro: Exchange Server 2013 EnterpriseExchange Server 2013 Standard Edition

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.