export pst

Frequent Contributor

Hi experts 

i have a requirement to export pst files for two users.

for one user i want to export mails from june 2017 to dec2017 from mailbox. will the below syntax work?

New-MailboxExportRequest -Mailbox "" -batchname batch1 -ContentFilter {(Received -gt '06/01/2017') -and (Received -lt '12/31/2017')} 
-FilePath "\\myserver01\sharedfolder\user1.pst" 

for onother user i want to export mails from archive mailbox from jan 2016 to march 2018 from his archive mailbox. will the below syntax work?

New-MailboxExportRequest -Mailbox "" -batchname batch2 -ContentFilter {(Received -gt '01/01/2016') -and (Received -lt '03/31/2018')} 
-FilePath "\\myserver01\sharedfolder\user1.pst" -IsArchive

Please also help me with the syntax to know the status of batches.

5 Replies

Hi there,


Could you confirm if you are trying to run this command for Exchange Online. If yes the New-mailboxexportrequest parameter will not work.


This option is still not available in Exchange Online




Robin Nishad


Kindly Mark the reply as answer if find helpful.

As Robin said, these commands do not work for Exchange Online.


Instead, create a Content Search (also referred to as eDiscovery) through the Security and Compliance Center. Once you have a search, you can export the content to PST.

best response confirmed by Rising Flight (Frequent Contributor)



Here is a step-by-step instruction on how to export Office 365 mailboxes to PST using eDiscovery:


Hope this helps.




I’m sure he can google for third party tools!


Hello, @Rising Flight 

As a software expert, I know that how difficult the PST migration is when it  is done manually. Therefore, it is advised to use any professional tool available in the market to export PST files with ease.  I recommend you to use PST Exporter Tool to export your PST files to different email clients. This professional tool can migrate all your Outlook PST emails with mail attachments. This tool also offers free migration of PST email in its demo version. You are good to use this tool for PST migration.