New-MailboxExportRequest -ContentFilter

Can you combine the Exchange PowerShell command New-MailboxExportRequest -ContentFilter  with a date range for "Received" and "Sent" together, so you only have 1x pst file for the date range

For example:
NewNew-MailboxExportRequest -ContentFilter {(Received -lt '01/04/2014') -and (Received -gt '12/02/2012')} -Mailbox "DavidD" -Name DavidDExport -FilePath \\myserver\pst\DavidDExport.pst

NewNew-MailboxExportRequest -ContentFilter {(Sent -lt '01/04/2014') -and (Sent -gt '12/02/2012')} -Mailbox "DavidD" -Name DavidDExport -FilePath \\myserver\pst\DavidDExport.pst
Who is Participating?
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.

Jamie McKillopIT ManagerCommented:

Sure, you can do this:

New-MailboxExportRequest -ContentFilter {((Sent -lt '01/04/2014') -and (Sent -gt '12/02/2012')) -or ((Received -lt '01/04/2014') -and (Received -gt '12/02/2012'))} -Mailbox "DavidD" -Name DavidDExport -FilePath \\myserver\pst\DavidDExport.pst


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
barney54Author Commented:
Yes, that did the trick, for some reason I didn't think of that. I kept trying to insert "and" in place of the "or".

Thanks so much for your help
Marshal HubsEmail ConsultantCommented:
Stellar EDB to PST Converter exports mailboxes to PST for particular date range for "Received" and "Sent" together. You just need to select and scan EDB file & after previewing the mailboxes, click on 'Search Message' option. Check following picture, you can select date range as per your requirement.

Demo version Official website:
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

From novice to tech pro — start learning today.