Importing and exporting PST files is a common task for many Microsoft Exchange Server administrators. This can be done via Outlook, PowerShell and in some cases also via Exchange Management Console. This guide will cover the basic usage of the New-MailboxExportRequest cmdlet to create mailbox export requests, as well as the viewing and clean-up of existing export requests in Microsoft Exchange 2010, 2013 and 2016.

See Importing PST Files in Exchange Server 2010, 2013 and 2016 to learn about importing.

Requirements

  • The user performing the export must be a member of a role group which has the Mailbox Import Export role added. The easiest way of achieving this is running this script in PowerShell or the Exchange Management Shell:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "<user name or alias>"
  • The location to which you will export the PST file must be a shared folder on the local network (accessable by a UNC path).

New Mailbox Export Request

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

See New-MailboxExportRequest – Microsoft Docs for full specifications on the usage of the cmdlet.

Manage & Clean Up Export Requests

List All Export Requests

Get-MailboxExportRequest

List All Export Requests With Statistics

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Log Failures to Text File

Get-MailboxExportRequest -Status Failed | Get-MailboxExportRequestStatistics -IncludeReport | Format-List > MailboxExportRequestFailures.txt

Remove Completed Export Requests

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest

This guide has covered the basics of exporting PST files from Microsoft Exchange 2010, 2013 and 2016. See Importing PST Files in Exchange Server 2010, 2013 and 2016 to learn about importing.


Leave a Reply

Your email address will not be published. Required fields are marked *