Export-mailbox problems with Exchange 2007
We were having problems exporting mailboxes to pst files using the exchange management shell command "export-mailbox." After scouring the internet and finding all kinds of articles on setting proper permissions, mapi problems, update rollups and service packs, and about a million other "solutions" we finally resolved it accidentally by trying to run exmerge instead. Turns out we needed to run the tool as an account that was NOT a domain admin. Sheesh, whooda thunk we had too MUCH rights? I actually discovered this because I gave up and was going to use the exmerge tool instead and was following the instructions here:
http://www.exchangeinbox.com/article.aspx?i=88
Once I got exmerge working successfully I wondered if that account would work for the export-mailbox tool and sure enough, I logged into my laptop as the exmerge user I created and voila, all was happy. So follow the article above as far as setting up the account and assigning it rights to the mailbox store. I'm not going to list all the errors we were getting, but some were error numbers:
1056749164
2147221233
2147221219
I found lots of threads and forums online mentioning these problems and most of them had no definitive solution, so hopefully this will help someone.
One other thing I discovered - DON'T ever launch Outlook as the exmerge user (or whatever user you created). When Outlook configures your mail profile it screws the mapi settings up. If you do this your best bet is to delete the windows profile on the machine you are using for the exmerge user and log in again with a fresh profile. I'm not sure what the exact setting is that messes it up but I think it has something to do with having your Outlook autodiscover and set your settings for you. You may be able to just set up the profile manually and make it work, but I didn't want to mess with it and just deleted the windows profile (not the mail profile - the whole windows profile).
http://www.exchangeinbox.com/article.aspx?i=88
Once I got exmerge working successfully I wondered if that account would work for the export-mailbox tool and sure enough, I logged into my laptop as the exmerge user I created and voila, all was happy. So follow the article above as far as setting up the account and assigning it rights to the mailbox store. I'm not going to list all the errors we were getting, but some were error numbers:
1056749164
2147221233
2147221219
I found lots of threads and forums online mentioning these problems and most of them had no definitive solution, so hopefully this will help someone.
One other thing I discovered - DON'T ever launch Outlook as the exmerge user (or whatever user you created). When Outlook configures your mail profile it screws the mapi settings up. If you do this your best bet is to delete the windows profile on the machine you are using for the exmerge user and log in again with a fresh profile. I'm not sure what the exact setting is that messes it up but I think it has something to do with having your Outlook autodiscover and set your settings for you. You may be able to just set up the profile manually and make it work, but I didn't want to mess with it and just deleted the windows profile (not the mail profile - the whole windows profile).

