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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MegaNuk3Commented:
Try
Test-ExchangeSearch "<mbxname>" | fl
and see it passes

More info:
http://technet.microsoft.com/en-us/library/bb123701.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.