MAPI Error with export-mailbox cmdlet
Hi all, I've already posted this same questionelsewhere, but if anyone here can resolve the issue or suggest a better way (without using archiving software - yet!), I'd be most grateful. I'd even be happyif someone can replicate theproblem so Iknow I'm not going mad... I'm trying to set up a quick & dirty quarter year pst mail archive for one ofour users on ourExchange 2007 (SP1) box.Using the command:export-mailbox -id userA -pstfolderpath \\testpath\test.pst -enddate "01/03/2007"I come up against this error: Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: MAPI or an unspecified service provider. ID no: 00000000-0000-00000000, error code: -1056749164Which I understand is a fairly standard permissions error. Problem is that I know the permissions are set correctly, having testedthe functionby removing the -enddate parameter;and getting a successful export. I worked out after a while that thecommand seems to fall over when it hits a subfolder, so I tested this by using the -includefolders parameter. The command:export-mailbox -id userA -pstfolderpath \\testpath\test.pst -includefolders '\inbox' -enddate "01/03/2007"will fail if there are any subfolders under '\inbox'. Add the names of the subfolders:export-mailbox -id userA -pstfolderpath \\testpath\test.pst -includefolders '\inbox\subfolder1' -enddate "01/03/2007"and as long as those subfolders don't have any subfolders, I will get a successful export. Any help appreciated. Cheers Dan
March 6th, 2008 1:08am

What machine are you running this from?XP workstation etc?The 32 bit tools are the only ones that work.Type "fixmapi" at a command prompt on the workstation and see if that helps
Free Windows Admin Tool Kit Click here and download it now
March 7th, 2008 1:34pm

I had this problem withj two user moving from exchange 2003 to 2007, i fixed this adding more space to the user's mailbox. I had one almost reaching her size (~ 1GB) after adding 1GB it moved with no error. I hope this help! Angel
March 9th, 2008 3:01am

This drove me nuts, but turned out to be simple permissions fix: Add account doing the exporting as Server Admin then grant full permissions to mailbox via this command: add-mailboxpermission -identity testtargetaccount -usertestadminaccount -AccessRights FullAccess Here's a good article on the subject: http://www.exchangeinbox.com/article.aspx?i=102
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2008 6:56pm

Hello Tallarico, Unfortunately, not that simple for me! All permissions checked and double checked. Also ran with a test account created for the purpose - no joy. To other posters - We don't have any mailbox quotas in place and the tools are running / have been run on 32 bit XP & Vista - no joy. Thanks for your input though! Dan
March 18th, 2008 3:00am

Did anyone ever find a resolution for this?
Free Windows Admin Tool Kit Click here and download it now
April 29th, 2008 5:06pm

Hey Trent, Sad to say I didn't. Ended up having to do the pst archiving manually from the Outlook client. Oh so many happy hours of fun and frivolity... It'll be fixed in SP2, I guess. Cheers Dan
April 30th, 2008 3:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics