Home / Solution / How to Import and Export Mailbox to PST in Exchange 2016/2013/2010?

How to Import and Export Mailbox to PST in Exchange 2016/2013/2010?

In the Exchange Server 2010 SP1 (and newer), particular EnergyShell cmdlets appeared: New-MailboxImportRequest and New-MailboxExportRequest that enable you to import or export the contents of the Exchange mailbox from / to PST file. In the earlier Exchange variations, to import/export information from Exchange to PST file you had to use third get together utilities (most frequently, the ExMerge utility was used).

In Exchange 2016, 2013 and Office 365, the Exchange improvement staff continued to develop Exchange cmdlets for importing / exporting to PST information, barely increasing the performance and rising their efficiency. In this text, we’ll cowl typical examples of import/export information from Exchange mailboxes to private folders information (PST).

Mailbox Import and Export Permissions in Exchange

The RBAC position “Mailbox Import Export” should be assigned to the admin account beneath which you need to import or export an Exchange mailboxes to PST (by default, even the Exchange directors doesn’t have these permissions). You can assign this position to your account utilizing the Exchange Management Shell:
New-ManagementRoleProject –Role “Mailbox Import Export” –User fr_exchange_admin
the place fr_exchange_admin – is the identify of the account that positive factors the “Mailbox Import Export” position permissions.

Tip. To make the administration simpler, the “Mailbox Import Export” position is normally assigned to the AD safety group. Later, if this proper has to be given to one other consumer, will probably be sufficient to to this area group. In this case, the command syntax is a bit completely different (suppose, the identify of the AD group is ExchangeAdmGroup):

New-ManagementRoleProject -Role "Mailbox Import Export" -SecurityGroup ExchangeAdmGroup

The similar could be dome from the EAC (Exchange Admin Center) graphic interface by assigning the Mailbox Import Export to the specified consumer or group.

After granting RBAC permissions, restart the EAC or Management Shell console.

New-MailboxImportRequest: Importing PST Fie into Exchange Mailbox

To import a PST file to the Exchange mailbox, you want the next in addition to the RBAC permissions:

  • The goal Exchange mailbox should exist;
  • The PST file should be situated on the and you have got to know the total UNC path to it (don’t overlook that the native file on a sure laptop could be accessed by way of its community path like PCName111C$PSTtstmail.pst);
  • The consumer performing the import operation should have the NTFS learn permission on the community folder with the PST mail archive file.

Use the next command to import the content material of a PST file from a shared folder into the consumer’s mailbox usertest.

New-MailboxImportRequest -Mailbox usetest -FilePath HQ-FS01PSTusetest.pst

When importing into the goal field, the contents of present folders are merged, and new folders are added to the present mail folder construction.

The contents of the PST file could be imported not into the Exchange mailbox root, however into certainly one of present folder of the mailbox (e. g., “Old_mail”). For instance, you want to import solely the contents of the Inbox folder to the goal mailbox folder Old_mail:

New-MailboxImportRequest -Mailbox usetest -FilePath HQ-FS01PSTusetest.pst  -TargetRootFolder "Old_mail" -IncludeFolders "#Inbox#"

Tip. Here is an entire record of the usual folders in the Exchange (Outlook) mailbox:

  • Inbox
  • DespatchedItems
  • DeletedItems
  • Calendar
  • Contacts
  • Drafts
  • Journal
  • Tasks
  • Notes
  • JunkEmail
  • CommunicationHistory
  • Voicemail
  • Fax
  • Conflicts
  • SyncIssues
  • LocalFailures
  • ServerFailures

After operating the import command, the import request is queued for processing by the Exchange server (processing is carried out on the server with the Client Access Server position). To see the import request queue, run this command:

Get-MailboxImportRequest

The import request job standing (InProgress, Completed, Queued) for a sure mailbox could be obtained as follows:

Get-MailboxImportRequest mailtst

To get details about the import request standing (in p.c), run the command beneath:

Get-MailboxImportRequest | Get-MailboxImportRequestStatistics

The accomplished import requests could be faraway from the queue with this command:

Get-MailboxImportRequest -Status Completed | Remove-MailboxImportRequest

To bulk import e mail gadgets from PST information into a number of consumer mailboxes, you should utilize this command (it’s assumed that the names of pst information correspond to the names of consumer mailboxes):

Foreach ($i in (Get-Mailbox))

If the import course of fails, you may get an in depth data on its causes from the report generated as follows:

Get-MailboxImportRequest -Status Failed | Get-MailboxImportRequestStatistics -IncludeReport | Format-List > AllImportReviews.txt

In most instances, the import errors happen due to:

You can specify the variety of dangerous gadgets in PST file that may be skipped through the import. The following command will import the info from the PST file into the Exchange mailbox and skip the primary ten failed gadgets earlier than producing an import error:

New-MailboxImportRequest -Mailbox mailtst -FilePath HQ-FS01PSTusetest.pst -BadItemLimit 10

New-MailboxExportRequest: Exporting Exchange Mailbox Items to a PST File

The export of the contents of the Exchange mailbox is analogous to import.  To export the contents of the mailbox to a PST file, use the New-MailboxExportRequest cmdlet. To export the mailbox of mailtst consumer to the shared community folder (this listing has to be created in advance and it’s essential to grant learn&write permissions on this folder for the Exchange Trusted Subsystem area group), run the next command:

New-MailboxExportRequest –Mailbox mailtst –FilePath HQ-FS01ExportPSTmailtst.pst

If you have got to export to a PST file solely e mail gadgets from a selected folder, e.g., Inbox, the command seems to be like this:

New-MailboxExportRequest –Mailbox mailtst –FilePath HQ-FS01ExportPSTmailtst.pst -IncludeFolders “#Inbox#”

To exclude a folder from exporting, use the ExcludeFolders parameter. For instance, you don’t want to export deleted gadgets to a PST file:

New-MailboxExportRequest –Mailbox mailtst –FilePath HQ-FS01ExportPSTmailtst.pst -ExcludeFolders “#DeletedItems#”

Let’s think about a extra advanced job: suppose, you have got to export all emails obtained after January, 1, 2019, that include key phrases “Project” and “London”.

New-MailboxExportRequest –Mailbox mailtst –FilePath HQFS01ExportPSTmailtst.pst –ContentFilter {(physique –like “*Project*”) –and

You also can export gadgets solely from a selected folder with a search mailbox search outcomes, obtained utilizing the cmdlet.

The export job request is also queued on the Exchange server. To see the export job standing, run this command:

Get-MailboxExportRequest -Mailbox "mailtst" | Format-List

RunspaceId : 3233f0d3-1b4b-4610-b0a2-6f29a543cc54
FilePath : HQFS01ExportPSTmailtst.pst
SourceDatabase : db1
Mailbox :
Name : MailboxExport
RequestGuid : e03de01f-3333-111a-95fa-23faaf97ebf9
RequestQueue : db1
Flags : IntraOrg, Push
BatchName :
Status : Completed
Protect : False
Suspend : False
Direction : Push
RequestStyle : IntraOrg
OrganizationId :
Identity : mailtstMailboxExport
IsValid : True
ObjectState : New

Don’t overlook to periodically clear the finished requests for the export of mailboxes to PST information:

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest

When exporting the consumer mailbox to a PST file, the consumer mailbox contents on the Exchange server should not cleared.

You can export a number of consumer mailbox in bulk. Create a csv textual content file of the next format:

Username, UNCPathtoPst
t.holland,HQFS01ExportPSTholland.pst
d.orr,HQFS01ExportPSTorr.pst

Run exporting consumer mailboxes right into a PST information:

Import-CSV "C:psuser_list_export_pst.csv" | ForEvery {New-MailboxExportRequest -Mailbox $_.username -FilePath $_.UNCPathtoPst

Check Also

Windows Server Licensing for Virtual Environments

In this text, we’ll look on licensing options of the Windows Server 2019, 2016 and …

Leave a Reply

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