none
Export-Mailbox error => MAPI or an unspecified service provider. ID no: 00000000-0000-00000000

    Question

  • We are running exchange servers in mixed environment, Exchange 2003 and 2007, exchange 2007 is running with SP3.

    I tried to export a user mailbox from Exchange 2007 to pst format using the following command, I have installed management console and Outlook 2007 in Server 2003 x86 environment.

    Export-Mailbox -Identity DOMAIN\USER -PSTFolderPath D:\pst-archives\ -StartDate 1/1/2005 -EndDate 12/31/2010 -DeleteContent -Confirm:$false 

    and always get the error:

     MAPI or an unspecified service provider.
     ID no: 00000000-0000-00000000

    I have given Full access permission in the user mailbox for the admin a/c which I am using to run powershell command. I am pretty sure the permission is not a problem, i confirmed by running following Powershell

    Add-mailboxpermission -identity <mailbox user> -accessrights fullaccess -user <exchange admin>

    Someone mentioned in the forum by default the threshold for corrupted items is zero, try upping the limit by adding  -Baditemlimit 10000 at the end but it didn't help me.

    Somebody mentioned in a forum if the cache mode in outlook for the user is enable it will cause the problem. I confirmed that is not a problem and I disabled all exchange features and restarted exchange services, still problem continues.

    Hope some one has fixed this issue and will help me to do the job.


    • Edited by Karan.T Tuesday, March 13, 2012 10:58 AM
    Tuesday, March 13, 2012 10:57 AM

Answers

  • Export-Mailbox -Identity DOMAIN\USER -PSTFolderPath D:\pst-archives\ -StartDate 1/1/2005 -EndDate 12/31/2010 -DeleteContent -Confirm:$false 

    Hi KaranRajan,

    Please note first: You cannot use the Export-Mailbox cmdlet to delete more than 4,000 objects from a folder.

    Export-Mailbox

    http://technet.microsoft.com/en-us/library/aa998579(v=exchg.80).aspx

    If possible, please run the cmdlet against another mailbox to test.

    Please also try to export items into another mailbox directly. For example:

    Export-Mailbox -Identity john@contoso.com -TargetMailbox ExportMailbox -TargetFolder MyData

    Hope the following similar post will be helpful as well:

    Export-Mailbox delete content not working

    http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/58fe9f8d-565c-474b-a8e1-90b2ed7c946f/


    Frank Wang

    TechNet Community Support

    • Proposed as answer by Jamestechman Thursday, March 15, 2012 5:58 PM
    • Marked as answer by Frank.Wang Tuesday, March 20, 2012 1:58 AM
    Thursday, March 15, 2012 6:28 AM
  • Check franks links, in my case it required the reg entry per his second link.

    MaxLargeFileSize REG_DWORD 0x00000001 – 0x00005000 0x00005000 20,480 (20 GB)

    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    • Marked as answer by Frank.Wang Tuesday, March 20, 2012 1:58 AM
    Thursday, March 15, 2012 5:58 PM

All replies

  • Does the user you are trying to export exist on an Exchange 2007 server or a 2003 server.  If it is the latter, I dont believe the export-mailbox command works with Exchange 2003.

    Tuesday, March 13, 2012 5:35 PM
  • User account mailbox is in Exchange 2007
    • Edited by Karan.T Tuesday, March 13, 2012 8:25 PM
    Tuesday, March 13, 2012 8:24 PM
  • Well, according to the documentation, the Identity you specify has to be mailbox specific, not user specific.  Valid options for Identity are

    • Alias
    • SMTP Address
    • Display Name

    I see that the examples show domain\user, but I would try it using one of the above three, or you could try Get-Mailbox domain\username | export-mailbox <options>.

    Have you already tried a simple mailbox export, if not I would just specify the Identity (Use the alias) and the PSTFolderPath. 

    If that doesn't work, try exporting specifying the PST Name, so in your example above, try:

    Export-Mailbox -Identity USERALIAS -PSTFolderPath D:\pst-archives\USER.PST

    Wednesday, March 14, 2012 12:36 PM
  • Hi Russ, I tried it didn't help and produced same error.

    Wednesday, March 14, 2012 8:26 PM
  • Do you have rights to the mailbox you are trying to export?  Just because you are an Exchange Admin doesnt give you permissions to access other users mailboxes.  Check your (or whatever login is trying to do the export) permissions and/or use

    Get-Mailbox "Mailbox to Export" | Add-MailboxPermissions -User <Your Account> -AccessRights FullAccess

    before trying to export-mailbox again.


    • Edited by Russ Burden Wednesday, March 14, 2012 8:56 PM
    Wednesday, March 14, 2012 8:55 PM
  • Export-Mailbox -Identity DOMAIN\USER -PSTFolderPath D:\pst-archives\ -StartDate 1/1/2005 -EndDate 12/31/2010 -DeleteContent -Confirm:$false 

    Hi KaranRajan,

    Please note first: You cannot use the Export-Mailbox cmdlet to delete more than 4,000 objects from a folder.

    Export-Mailbox

    http://technet.microsoft.com/en-us/library/aa998579(v=exchg.80).aspx

    If possible, please run the cmdlet against another mailbox to test.

    Please also try to export items into another mailbox directly. For example:

    Export-Mailbox -Identity john@contoso.com -TargetMailbox ExportMailbox -TargetFolder MyData

    Hope the following similar post will be helpful as well:

    Export-Mailbox delete content not working

    http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/58fe9f8d-565c-474b-a8e1-90b2ed7c946f/


    Frank Wang

    TechNet Community Support

    • Proposed as answer by Jamestechman Thursday, March 15, 2012 5:58 PM
    • Marked as answer by Frank.Wang Tuesday, March 20, 2012 1:58 AM
    Thursday, March 15, 2012 6:28 AM
  • Check franks links, in my case it required the reg entry per his second link.

    MaxLargeFileSize REG_DWORD 0x00000001 – 0x00005000 0x00005000 20,480 (20 GB)

    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    • Marked as answer by Frank.Wang Tuesday, March 20, 2012 1:58 AM
    Thursday, March 15, 2012 5:58 PM
  • Hi KaranRajan,

    Any updates?


    Frank Wang

    TechNet Community Support

    Monday, March 19, 2012 2:42 AM