First check te size of the mailboxes to ensure enough space is free to store the PST files.
Get–Mailbox –ResultSize Unlimited | Get–MailboxStatistics | Sort–Object TotalItemSize –Descending | Select–Object DisplayName,TotalItemSize –First 30 |
Make a share available to the network. Ensure the Exchange trusted subsystem has read/write acces.
Open Exchange Powershell:
To define all mailboxes | $Export = Get-Mailbox |
To export all selected mailboxes | $Export|%{$_|New-MailboxExportRequest -FilePath β\\EX01\ExportPST\$($_.name).pstβ} |
Change: EX01\ExportPST to youre own local share.
To see the progres of the export:
Get-MailboxExportRequest |
To remove the completed export-request use:
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest |