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 [email protected] -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,
Hasan
Also, in a network share, where you export the mailboxes, you can see the info with the Get-MailboxExportRequest | Get-MailboxExportRequestStatistics command.
You can also check https://www.stellarinfo.com/blog/use-get-mailboxexportrequest-cmdlet-exchange/ blog what you get more from Get-MailboxExportRequest Cmdlet.