The example code given below is used to export a mailbox as PST format on an exchange server using exchange management shell. Date format is set MM/DD/YY.
New-MailboxExportRequest -Mailbox mailbox@yourdomain.com -ContentFilter {(Received -gt '03/03/2021') -and (Received -lt '10/05/2021') -or (Sent -gt '03/03/2021') -and (Sent -lt '10/05/2021')} -Filepath "\\10.10.10.11\BackupPST\mailbox.pst
Given code can be used to display the progress of the exporting request on the exchange management shell.
Get-MailboxExportRequest
Thanks for your time reading.
Regards,
