For varius reasons it sometimes necessary for Exchange admin to export a mailbox for a specific user, e.g. when retiring or leaving for another job.
Prepare network folder
First, it’s necessary to prepare the network folder where the pst file will be exported and it’s not on the C disk. This folder must have full ETS (Exchange Trusted Subystem) access.
Delegate Export/import mailbox role
Next, you need to arrange access for export to the mailbox. Namely, this right is not automatically granted to Exchange administrators. Under the admin role of Recipient Management, the Malibox Import Export role is selected. Whit this role enabled you can now import or export mailbox from or to pst file.
Powershell script to add Mailbox Import Export Role
New-ManagementRoleAssignment -Role “Mailbox Import Export†-User “<user name or alias>“
Powershell script to export full mailbox
New-MailboxExportRequest -Mailbox -FilePath \\<server FQDN>\<shared folder name>\<pst name>.pst
Powershell script to export mailbox with some excluded folders
New-MailboxExportRequest -Mailbox -FilePath \\<server FQDN>\<shared folder name>\<pst name>.pst -excludefolders “#deleteditems#â€, “#spam#
Powershell script to export archive mailbox
New-MailboxExportRequest -Mailbox -FilePath \\<server FQDN>\<shared folder name>\<pst name>.ps -IsArchive