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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s