This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I run a search query based on recipient in PowerShell

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 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

Currently i`m using a Exchange 2010 plan from Apps4Rent hosting provider
Thanks in advance!

Regards,
Adrian Gates