Search-Mailbox fails on Exchange 2010 Standard if a query is given

I'm failing horribly at searching a single user's mailbox for any mail containing a particular word.

[PS] C:\Windows\system32>Search-Mailbox -Identity "USER" -TargetMailbox "Support" -TargetFolder "Recovery" -DomainController "dc.local"

Success! But I see every email ever; I need to narrow it down with a search.

[PS] C:\Windows\system32>Search-Mailbox -Identity "USER" -SearchQuery "Body: '*euro*'" -TargetMailbox "Support" -TargetFolder "Recovery" -DomainController "dc.local"


The search has Failed.

       Started by:      local\ADMIN
       Start Time:      3/31/2011 12:26:39 PM
       Size:      0 B (0 bytes)
       Items:      0
       Results:      local\Support
       Errors:      An error occurred when searching USER. The message is 'Search Failed on mailbox 'local\USER\a702b7cd-1921-4f96-9534-76ad00d719a1'. If the search query used short words with wildcard(s) such as pat*, it can result in a large number of words or phrases because all permutations of words starting with “pat” are searched. Make search queries as specific as possible when using wildcards. '.
       Operations performed:      Messages were copied to the target mailbox.
 
       Query:      Body: '*euro*'
       Search Dumpster:      True
       Logging:      Basic
       Mailboxes to search:      (1) local\USER

I've tried:

-SearchQuery "Body: '*euro*'"
-SearchQuery "Body: 'euro'"
-SearchQuery "*euro*"
-SearchQuery "euro"
-SearchQuery *euro*
-SearchQuery euro

Please note that all of the above searches, including with and without wildcards, yield the same error message.

I've done heavy searching online for 'search-mailbox "search failed on mailbox"' and such with no applicable results.

What am I missing?
KeyPlasticsAsked:
Who is Participating?
 
MegaNuk3Commented:
Try
Test-ExchangeSearch "<mbxname>" | fl
and see it passes

More info:
http://technet.microsoft.com/en-us/library/bb123701.aspx
0
 
KeyPlasticsAuthor Commented:
If the raw PowerShell error is useful:

Search Failed on mailbox 'local\USER\a702b7cd-1921-4f96-9534-76ad00d719a1'. If the search query used short words with wildcard(s) such as pat*, it can result in a large number of words or phrases because all permutations of words starting with "pat" are searched. Make search queries as specific as possible when using wildcards.
    + CategoryInfo          : ReadError: (0:Int32) [Search-Mailbox], SearchMailboxException
    + FullyQualifiedErrorId : 55FCE581,Microsoft.Exchange.Management.Tasks.SearchMailbox



RunspaceId       : 4d606ccd-375a-4cb3-97b2-75581bd19b70
Identity         : local/USER
TargetMailbox    : local/Support
TargetPSTFile    :
Success          : False
TargetFolder     : \Recovery\
ResultItemsCount : 0
ResultItemsSize  : 0 B (0 bytes)
0
 
MegaNuk3Commented:
Did you try Test-exchangeSearch?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
KeyPlasticsAuthor Commented:
MegaNuk3 - very nice pointer.


Error                : The MSExchangeSearch service isn't running.
DocumentId           : 7721738
Identity             :
IsValid              : True

The service "Microsoft Search (Exchange)" was disabled, which is a dependency of "Microsoft Exchange Search Indexer".
0
 
KeyPlasticsAuthor Commented:
And the search is now working. I'm not getting any results, but I think that's my fault.

Thanks, MegaNuk3.
0
 
MegaNuk3Commented:
You are going to have to wait a while for the Indexer to finish indexing your databases... You should get a 110 Event when it finishes...

Thanks for the points.
0
 
KeyPlasticsAuthor Commented:
MegaNuk3's troubleshooting step led to the actual problem, a disabled service.
0
 
MegaNuk3Commented:
Did you index reset finish and now return results as expected?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.