I'm trying to Export one of our Mailboxes into a .PST file and having problems finding the right cmdlets. We are trying to export the past 30 days of a users mailbox, both Received and Sent into one .PST File

This is what I've tried so far, but without any luck. New-MailboxExportRequest -ContentFilter {(Received -lt ’04/01/2010′) -and (Received -ge ’03/01/2010′) -or (Sent -lt ’04/01/2010′) -and (Sent -ge ’03/01/2010′)} -Mailbox “Pelton” -Name DPeltonExp -FilePath \ExServer1\Imports\DPelton.pst

Please advised as what I'm doing wrong. Thank you,


You need a few parentheses to make the ContentFilter logic stick. Try this:

{((Received -lt ’04/01/2010′) -and (Received -ge ’03/01/2010′)) -or ((Sent -lt ’04/01/2010′) -and (Sent -ge ’03/01/2010′))}

Edit: I think actually you should use double quotes for the dates in stead of single quotes. It might not matter, but if the above doesn't work, try substituting the single quotes with doubles


While Exporting Data (Send and Receive ) Folder into PST Format. All the data stored in Single File format (PST) and When you try to open the PST File via importing option of Outlook then it will maintain a folder hierarchy and to move data into pst format first you need to create and share folder, to save the desired data into it.

To know, how to create the shared folder, visit here, then you need to run Powershell query:

New-MailboxExportRequest -Mailbox -ContentFilter {(Received -lt '01/01/2015') -and (Subject -like 'fwd*')} -FilePath \\\.pst


I recommend you to refer following article & discussion:




  • Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Jenny D Jun 13 '18 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.