Exchange – Import PST

Requirements

  • Minimum Exchange 2010 SP1
  • Import permissions
  • Network Share with proper permissions

 

Grant Import permissions

First thing to do is to grant Import permission to your account. In EMS run:

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator

 

Create Network Share with proper permissions

Create a Network Share to store your PST file(s) and grant the Account “Exchange Trusted Subsystem” Read/Write permissions.

 

Import PST file

In EMS run the following cmdlet to import at the root mailbox:

New-MailboxImportRequest -FilePath \\server\pst\file.pst -Mailbox alias

Tips: To import into Personal Archive Mailbox, add the Parameter “-IsArchive”

Or this cmdlet with the parameter “-TargetRootFolder” to import into a specific folder:

New-MailboxImportRequest -FilePath \\server\pst\file.pst -Mailbox alias -TargetRootFolder "Folder Name"

 

Check Import Status

To check the Import Status of a mailbox, in EMS run:

Get-MailboxImportRequest -Mailbox alias

Or the following cmdlet to see to progress:

Get-MailboxImportRequest -Mailbox alias | Get-MailboxImportRequestStatistics

 

Clear Import History

View completed import:

Get-MailboxImportRequest | where {$_.status -eq "Completed"}

Clear completed Import history

Get-MailboxImportRequest | where {$_.status -eq "Completed"} | Remove-MailboxImportRequest

 

Common Errors

Log import details into a .txt file:

Get-MailboxImportRequest -Mailbox alias | Get-MailboxImportRequestStatistics -IncludeReport | fl >c:\users\username\report.txt

Check “FailureType” and it’s “Message”.

  • FailureType: TooManyBadItemsPermanentException

This happens when it sees items in the mailbox it does not like, or considers corrupt. To get round this problem, import the .pst file with the following command:

New-MailboxImportRequest -Mailbox alias -FilePath \\server\pst\file.pst -BadItemLimit 200 –AcceptLargeDataLoss
  • FailureType : MapiExceptionShutoffQuotaExceeded

This happens if you have a limit on the mailbox size, and to import from this PST file would break that restriction.

  • FailureType : MailboxReplicationPermanentException

This happens because you exported a PST file either using ExMerge or an older version of Outlook and it’s too big. Make sure it’s well under 2GB.

 

Advertisements

Disable Exchange Back Pressure

More information about “Exchange Back Pressure”

https://technet.microsoft.com/en-us/library/bb201658%28v=exchg.160%29.aspx

Back pressure is a system resource monitoring feature of the Microsoft Exchange Transport service that exists on Mailbox servers and Edge Transport servers. Back pressure detects when vital system resources, such as hard drive space and memory, are over-utilized, and takes action to prevent the server from becoming completely overwhelmed and unavailable. For example, when a system resource utilization level on the Exchange server is determined to be too high, the server delays accepting new messages. If the resource utilization gets worse, the server stops accepting new messages to work exclusively on processing all existing messages, and might even stop processing outgoing messages. When the system resource utilization returns to an acceptable level, the Exchange server resumes normal operation by accepting new messages and processing outgoing messages.

 

To disable the Back Pressure, edit the following file with notepad:

…Program Files\Microsoft\Exchange Server\V14\Bin\EdgeTransport.exe.config

And set the following value to “False”:

<add key="EnableResourceMonitoring" value="True" />

To

<add key="EnableResourceMonitoring" value="False" />

Finally, restart the Exchange Transport Service

 

/!\  Please keep in mind that it is only a TEMP solution /!\