Forum Discussion

Rising Flight's avatar
Rising Flight
Brass Contributor
Jul 17, 2018
Solved

export pst

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 "user1@mydomain.com" -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 "user2@mydomain.com" -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

  • Hello all - looks like this has been asked and answered (with a best response noted). Since people are responding to this now with third party tool links (not allowed on Tech Community), I've closed this thread for new responses. Thanks!
  • Max Fritz's avatar
    Max Fritz
    Iron Contributor

    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.

     

    https://support.office.com/en-us/article/run-a-content-search-in-the-office-365-security-compliance-center-61852fd9-fe8a-4880-a339-cb19ed3bff4a?ui=en-US&rs=en-US&ad=US

  • Rnishat0786's avatar
    Rnishat0786
    Iron Contributor

    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

     

    Thanks

     

    Robin Nishad

    --------------------------------------------------------------------------------------

    Kindly Mark the reply as answer if find helpful.

Resources