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