How do I run a search query based on recipient in PowerShell for Exchange 2010?

Posted by LucidLuniz on Server Fault See other posts from Server Fault or by LucidLuniz
Published on 2011-07-07T12:35:26Z Indexed on 2012/04/06 11:32 UTC
Read the original article Hit count: 189

Filed under:
|

I've tried to run the following commands but neither work and I'm not sure how I should setup the query. I tried to find a full list of available search strings but couldn't locate one online or using help.

I did find the list here (http://technet.microsoft.com/en-us/library/bb232132.aspx#AQS) but it doesn't include the search queries I am looking for (based on the fact that it doesn't even list "Received:" which I know is an option because I use it all the time.

Search-Mailbox -Identity -SearchQuery 'Received:' 'To:' -LogLevel Full –DeleteContent

Search-Mailbox -Identity -SearchQuery 'Received:' 'Recipient:' -LogLevel Full –DeleteContent

Thanks in advance!

© Server Fault or respective owner

Related posts about exchange-2010

Related posts about powershell