Try something like this get-mailbox | search-mailbox -SearchQuery "Received:> $('1/01/2010') and Received:< $('12/31/2011') and subject:RE: Fake Message"
Chuck Robinson _______________ Sr. Solutions Architect MCITP:EA, Messaging 2010 EMC Consulting Mobile: 973-865-0394 chuck.robin...@emc.com<mailto:chuck.robin...@emc.com> www.emc.com/consulting<http://www.emc.com/consulting> Transforming Information Into Business Results From: Leedy, Andy [mailto:ale...@butlerschein.com] Sent: Friday, September 23, 2011 2:29 PM To: MS-Exchange Admin Issues Subject: Using Search-Mailbox? I'm trying to pull a message from everyone's mailbox. The following PowerShell command seems to work but I would like to narrow down the search by adding date sent, sender etc... Get-mailbox | Search-Mailbox -SearchQuery 'subject:"RE: Fake Message"' -DeleteContent My question is, how do you add more than one parameter to -SearchQuery? Thanks, Andy ********************************************************************** CONFIDENTIALITY NOTICE - The information transmitted in this message is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy all copies of this document. Thank you. Butler Schein Animal Health ********************************************************************** --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe exchangelist