Jul 17 2018 10:33 AM
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.
Jul 17 2018 04:36 PM
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.
Jul 17 2018 10:13 PM
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.
Jul 19 2018 07:31 AM
SolutionHi,
Here is a step-by-step instruction on how to export Office 365 mailboxes to PST using eDiscovery: https://www.codetwo.com/admins-blog/how-to-export-office-365-mailboxes-to-pst-using-ediscovery/.
Hope this helps.
Adam
Apr 21 2022 11:25 AM