Today I will show you how to export Mailboxes from an Exchange Server to a single PST file. This blog post applies only to On-Premise Exchange Servers. By default, it’s currently not possible to export Mailboxes from Exchange Online. Let’s dive in.
Create a Network Share
PST files exports can only be stored on a network share.
New-Item -ItemType Directory -Name PST -Path C:\
New-SmbShare -Name PST -Path C:\PST -FullAccess Jeder
Start the Export Request
In this part the export is started, checked and finally deleted again.
New-MailboxExportRequest -Mailbox m.mustermann@contoso.com -FilePath \\localhost\PST\mustermann.pst
Get-MailboxExportRequest -Mailbox m.mustermann@contoso.com
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest
Fine. That’s it. Mission accomplished.
Categories: PowerShell, Windows 11, Windows Server