Forum Discussion

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

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.

Share

Resources