Exchange 2007/2010/2013: Migration with PST file import/export

After I here already on how to avoid undeliverable messages when migrating from Exchange Server using PST files, here are two scripts that can make your life much easier. When importing PST files, it can happen that the assignment of standard folders such as Inbox, Sent Items etc. no longer matches. This problem is particularly common with different languages. Here is an example:

PST

Two inboxes appear in the screenshot (Inbox and Inkorgen). Inbox is currently the default folder for mails (recognizable by the mail symbol on the folder), Inkorgen is the inbox that was imported from the PST file, depending on the language the names can of course vary. The situation is similar for all other folders, here for the calendar:

2

The first screenshot shows the problem: Both inboxes already contain items. To fix this unsightly structure, it is not enough to start Outlook with the /resetfoldernames parameter, as there is already an "Inkorgen (Inbox)" folder. In this case, Outlook would rename the Inbox folder to Inkorgen1 with the /resetfoldernames parameter, as this is a Swedish Outlook.

To fix this manually, the content of Inkorgen would have to be moved to the Inbox folder and then the mailbox language would have to be changed. However, this means a lot of manual work and manual editing of calendars is a pain. However, there are two scripts that do this work for you.

Michel de Rooij's script can correct the folder structures for individual mailboxes and also for multiple mailboxes:

http://gallery.technet.microsoft.com/Fixing-Well-Known-Folders-4b7e98b9

The mailbox is accessed via EWS and the contents of the folders are moved. The assignment of PST import folders and mailbox folders is done via a table that contains the translations. Folders to which a number has already been appended are also corrected.

The second script is a little more granular, here only content is copied from one folder to another:

http://blogs.msdn.com/b/emeamsgdev/archive/2012/04/27/powershell-script-to-move-items-from-one-folder-to-another-in-a-user-s-mailbox.aspx

With this script, you can build your own solution for hardship cases. The script also uses the EWS API.

Both scripts work with the EWS API 1.2. EWS can be downloaded here:

http://www.microsoft.com/en-us/download/details.aspx?id=28952

Leave a Comment