WinDeveloper O365 Mailer FREE for 1 Year

WinDeveloper IMF Tune
WinDeveloper IMF Tune
  • Home
  • ExMerge
  • Import-Mailbox Problems with Outlook PSTs

Import-Mailbox Problems with Outlook PSTs

Alexander Zammit

Alexander Zammit Photo

Software Development Consultant. Involved in the development of various Enterprise software solutions. Today focused on Blockchain and DLT technologies.

Cast your Vote
Poor Excellent

Some users are discovering that the import-mailbox cmdlet has problems with importing emails from an Outlook generated PST. Today we reproduce this problem and identify some stopgap solutions.

IMPORTANT: The problem discussed in this article is now fixed in the Update Rollup 2 for Exchange Server 2007 Service Pack 1

In Replacing ExMerge by Import-Mailbox and Export-Mailbox, we saw how Exchange 2007 SP1 introduced an ExMerge replacement. This was highly awaited. The new cmdlets provided a supported alternative to ExMerge. Furthermore the new cmdlets added support for the latest PST format beating the dreaded 2GB limit.

While going through the forums (see references) I came across a problem report concerning these cmdlets. Apparently import-mailbox, when fed with an Outlook generated PST, may "succeed" without importing anything. A little trick allows us to get the cmdlet to work. However as we shall see the trick may not be viable in all cases.

Reproducing the Problem

The easiest way to illustrate the problem is by going through the steps I used for reproducing it.

The problem concerns PSTs generated by Outlook. Thus to begin with I created an Exchange mailbox and configured Outlook to download emails to a local PST.

  1. A new mailbox named Mbx was created on an Exchange server. Here the Exchange version is not relevant. This is just being used to create a PST for us to test with.

  2. On a client machine, Outlook 2003 was installed and at the profile configuration we chose "New Outlook Data File" to create the PST.

    New PST

  3. The PST file was named Mbx to match the mailbox name.

    PST Details

  4. At the end, the profile was configured for emails to be downloaded to the PST.

    PST Email Delivery

Next we populated the PST with some items. Specifically items were created under these standard folders: Inbox, Sent Items, Drafts and Contacts. We also created and placed emails under two custom folders named ABC and XYZ. All folders containing items are highlighted in the screenshot that follows:

PST Content

It is now time to run import-mailbox. Here we use a completely different Exchange 2007 mailbox server and a 32-bit Windows XP machine on which the import-mailbox cmdlet is to be run. Full details on how to setup this machine are available from, Replacing ExMerge by Import-Mailbox and Export-Mailbox.

  1. On the target Exchange 2007 mailbox server we create a mailbox named Mbx.

  2. We move the Mbx.pst file created earlier to the XP machine and run the import-mailbox cmdlet:

    import-mailbox -identity mbx@space.local -PSTFolderPath e:\temp\mbx.pst

  3. The cmdlet reports no errors, but on opening the mailbox we see that nothing was imported.

    So at this stage we already reproduced one of the problems described at the forums. However this is not the end of it. A little trick is ready for the rescue.

  4. We now run the following cmdlet

    export-mailbox -identity mbx -pstfolderpath e:\temp

    This will export the empty mailbox just created on Exchange 2007 to our PST. Since the mailbox is empty no new items are added however the command apparently fixes some of the issues.

  5. We now rerun the same import command:

    import-mailbox -identity mbx@space.local -PSTFolderPath e:\temp\mbx.pst

    Magically the operation now successfully imports all items located under the standard folders (Inbox, Sent Items, Drafts and Contacts). However there is no trace of the ABC and XYZ custom folders.

    Imported Standard Folders

  6. So it is clear that export-mailbox did some magic to the standard folders. My guess is that since the custom folders did not exist in the exported mailbox, these were not touched by the export operation. So next we create a new mailbox and manually create the custom folders so as to replicate the structure to be imported.

    We now run export-mailbox and import-mailbox in sequence. As expected everything is now imported including the custom folder items!!

    Imported Standard an Custom Folders

How about ExMerge?

An obvious question is whether ExMerge provides a viable alternative. The biggest problem in using ExMerge is the PST format. If the PST is in the Unicode format, ExMerge won't be able to process it. However if the PST were to be of the older type, then the import would work fine. All folders including the custom ones are imported without problems.

Final Tips

I hope this article is of assistance to those running into this problem. If you are using the old PST format, ExMerge helps you avoid the problem altogether. True ExMerge is not supported with Exchange 2007. However it does work. Check Using ExMerge with Exchange 2007 for setup details.

Otherwise the export-mailbox cmdlet gives us a simple solution for solving the problem in case of standard folders. This is not as effective in case of custom folders since we need to replicate the folder structure. Here we could focus on creating the structure of the important mailboxes ourselves and ask the "less equal" users to give us a hand with their mailbox. This is certainly far from elegant. But hey, storing emails in local PSTs is not elegant either.

Finally don't forget to drop a comment. Let me know what you think and share any other workarounds. Hopefully this article will become obsolete with the release of Exchange 2007 SP2.

References

TechNet Forums - Original Problem Report

Replacing ExMerge by Import-Mailbox and Export-Mailbox

Using ExMerge with Exchange 2007

User Comments - Page 1 of 1

ITGuy 8 Jan 2010 22:30
Much like most of Microsoft products clearly are not ready for prime-time. How much time do we IT guys have to waste dealing with MSFT's shoddy junk?
iamme 19 May 2009 12:00
Do you know if import-mailbox works fine from a PST exported using exmerge?
Alexander Zammit 9 May 2008 02:39
IMPORTANT: The problem discussed in this article is now fixed in the Update Rollup 2 for Exchange Server 2007 Service Pack 1:
http://support.microsoft.com/?kbid=948016
m.freeeman 2 May 2008 02:08
I am not a techie at all. I just want to use my Outlook mail. Help! michai.freeman@xxxxxx
Gerald 24 Apr 2008 15:12
Thanks for clarifying the problem. Import-Mailbox and Export-Mailbox are definitely not ready for primetime. Wasted a lot of time today until the problem became clear. The most practical workaround I found for this is to forget the cmdlets, connect to the target Exchange account with Outlook, and import the PST from within Outlook. Very manual, and certainly no good if you have a lot of PST's to import. But at least it works, and grabs all folders. I hope Microsoft fixes this soon.
Copyright © 2005 - 2024 All rights reserved. ExchangeInbox.com is not affiliated with Microsoft Corporation