Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 8820

Search for emails with attachments in Exchange 2010 Powershell

$
0
0
Please tell me how to query for emails without attachments.

This doesn't work:
Search-Mailbox -Identity "User" -SearchQuery "hasattachment:false" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "HasAttachments"

Neither does this:
Search-Mailbox -Identity "User" -SearchQuery "hasattachment:$false" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "HasAttachments"

Neither does this:
Search-Mailbox -Identity "User" -SearchQuery "hasattachments:false" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "HasAttachments"

From what I understand this page would indicate that it should:
http://msdn.microsoft.com/en-us/library/aa965711(v=vs.85).aspx

The error I get is: "The property keyword isn't supported." But that property keyword is in the list of supported properties according to the page above...

Please help.

Viewing all articles
Browse latest Browse all 8820

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>