If you have a PST file with a large amount of emails in it and you want to import the PST into Exchange 2013 then you will use the New-MailboxImportRequest Normally the only problems you can get with this is if there are corrupted emails in your mailbox. In Exchange 2013 their is an additional option for LargeItemLimit, this needs specifying how many large items you would like to ignore the size of and import them, Exchange 2013 will only let you ignore a maximum of 50 “large” emails before it will fail again without the additional “AcceptLargeDataLoss” where you can specify that its OK to move the mail between mailboxes and anything over 50 large emails will be ignored. If you do not specify these commands you get the Error code -2146233088. You can specify what is a large email with the set-transportconfig command.
Below I will show you how use this command in powershell.
Exchange 2013 Specify LargeItemLimit In Powershell
First the command then the explanation.
New-MailboxImportRequest -Mailbox Allen -FilePath \\techieshelp\PSTFiles\allen\Allen.pst
In the command above the -Mailbox “Allen” is the Exchange 2013 mailbox we are importing to and the -Filepath is the location of Allen`s PST. We do not specify a folder so all emails and folders are imported into the root of Allen.
If we wanted to restore these emails to a specified folder then we would add the -TargetRootFolder “RestoredPST” flag, where RestoredPST is a folder in allen. If the PST file had Large emails attachments we would use the command below
New-MailboxImportRequest -Mailbox Allen -LargeItemLimit 50 -FilePath \\techieshelp\PSTFiles\allen\Allen.pst
The LargeItemLimit 50 allows 50 “large” emails to be skipped before the import is marked as failed, if there are more we need to issue the AcceptLargeDataLoss command as below to allow the import to be successful,
New-MailboxImportRequest -Mailbox Allen -LargeItemLimit 50 -AcceptLargeDataLoss -FilePath \\techieshelp\PSTFiles\allen\Allen.pst
This will drop all “large” emails after it has imported 50.