How to export mailbox and archive mailbox from Exchange server

For various reasons, sometimes is necessary to export a mailbox to a specific user, e.g. when retiring or leaving for another job.

A network folder

First prepare the network folder where the file will be exported and it must not be on the C drive. This folder must have full ETS (Exchange Trusted Subystem) access.

Export / export license

Next you need to arrange access for export the mailbox. This right is not automatically granted to Exchange administrators. Under the admin role of Recipient Management, the Malibox Import Export role is selected.

New-ManagementRoleAssignment -Role “Mailbox Import Export” -User “<user name or alias>“

Powershell command to export users full mailbox

New-MailboxExportRequest -Mailbox -FilePath \\<server FQDN>\<shared folder name>\<pst name>.pst 

To disable individual folders from being exported e.g. spam and trash

New-MailboxExportRequest -Mailbox -FilePath \\<server FQDN>\<shared folder name>\<pst name>.pst -excludefolders “#deleteditems#”, “#spam#”

To export archive mailbox

New-MailboxExportRequest -Mailbox -FilePath \\<server FQDN>\<shared folder name>\<pst name>.ps -IsArchive

Saša

Works as system engineer in Slovenian Enterprise in Microsoft environment focusing on security, deployments, SharePoint, SCCM and CheckPoint firewall. Author of successful blog about IT security, Microsoft tips & tricks, social media, internet trends.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.