Saturday, 30 March 2013

Exporting a Mailbox to PST on Exchange x64

Strangely, you cannot run the Export-Mailbox command on a 64-bit version of Exchange Server 2007 in order to export a mailbox to a PST file.

Instead you need to
  • create a 32-bit VM (say Windows XP 32 bit)
  • Join that machine to your domain
  • install Outlook (32-bit) onto it
  • Install IIS Common Files from Add Or Remove Windows Components
  • download and install the Exchange Management Tools for 32-bit
  • Login as Domain Admin
then run the Export-Mailbox command from the Exchange Management Shell.

export-mailbox -identity <user> -PSTFolderPath c:\backup\<filename>.pst

This then fails with

Are you sure you want to perform this action?
Exporting mailbox content from the mailbox '<User>' into .pst file
<filename>.pst'. This operation may take a long time to complete.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):a

Export-Mailbox : Error was found for <User> because: 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: -1056749164
At line:1 char:15
+ export-mailbox <<<<  -identity <User> -PSTFolderPath <Path>
    + CategoryInfo          : InvalidOperation: (0:Int32) [Export-Mailbox], Re
   cipientTaskException
    + FullyQualifiedErrorId : 2742F138,Microsoft.Exchange.Management.Recipient
   Tasks.ExportMailbox

This is because the running user does not have permission to access the mailbox.

Run

Get-Mailbox | Add-MailboxPermission -User "<YourUserName>" -AccessRights FullAccess
and repeat

export-mailbox -identity <user> -PSTFolderPath c:\backup\<filename>.pst

9 comments:

  1. Nice, thanks for sharing this helpful article to export a mailbox from exchange to pst, but I tested this exchange server recovery tool from http://www.lepide.com/exchange-manager/ that allows facilitate to import or export files to pst. This tool also recovers corrupt or inaccessible edb files from exchange server.

    ReplyDelete
    Replies
    1. Great, thanks for letting me know. It has to be far easier than that above!

      Delete
  2. When you have to extract multiple mailboxes from Exchange to Outlook files, use only edb to pst converter. This tool is popular as it supports Exchange migration, OST file recovery, and EDB file extraction from backups. - See more information at: https://softcart.wordpress.com/edb-to-pst-converter/ or http://www.mozesoft.com/edb-to-pst-converter.html

    ReplyDelete
  3. The EDB file must be mounted and should be in healthy form to perform the conversion using this method. In case if you have corrupted EDB, you can use Expert suggested solution like: http://www.edbtopstconverter.recoverydeletedfiles.com


    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Thanks for the information. But I found it very complicated process therefore I purchased SysTools Exchange Export Tool. I think you should check it out by going through below link:
    https://www.systoolsgroup.com/exchange-export.html

    ReplyDelete
  6. Advance EDB to PST Converter which is efficient to recover Exchange server and convert EDB file to PST format in a short time of period.It will help you to come out from the worst situation like Exchange corruption and easily recover EDB to PST to make enclosed data readable. All versions of supported by this application and it give complete assurance about successful recovery of corrupt Exchange server.

    Download now: http://www.mannatsoftware.com/stellar-phoenix-edb-to-pst-converter.html


    ReplyDelete
  7. EDB to PST Converter Software to Convert your corrupt exchange edb to accessible outlook pst format, withe the help of EDB to PST software.

    This tool help to successfully removes all fix error and convert EDB data into PST, EML, MSG and HTML in just a few second. Visit:- http://www.edbtopst-converter.com/

    ReplyDelete
  8. EDB to PST Software is an advance email migration tool which makes users capable to convert Exchange EDB file to PST and other alternative formats such as EML, MSG, RTF, PDF and HTML. The tool supports email conversion from unicode EDB file to PST file without any hassle.
    Download the trial version of the EDB to PST tool, visit https://www.datarepairtools.com/edb-to-pst-converter.html

    ReplyDelete