Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to move messages from a rather large mailbox to an archive mailbox. However I run into errors all the time.

the command I am executing is

Export-Mailbox -Identity MAILBOX_FROM -TargetMailbox  ARCHIVE -TargetFolder ARCHIVE_FOLDER  -StartDate 2009-02-01 -EndDate 2009-02-28 -DeleteContent -Confirm:$false

I can copy/move some messages, but run into frequent "an unknown error has occurred" (statuscode -1056749164)

I run the console as administrative user, and all permissions are set right, as far as I can tell. I've restricted the start and end dates in case the number of messages moved/deleted should create problems.

Anything I am missing in my setup? Corrupted messages? Over-limit message sizes?


What I've learnt so far, is that folder with more than approx 3000 messages will generate errors. If mail retention is set (default 30 days), Export-Mailbox will scan all messages whether these were deleted in previous runs or not, and date restriction to limit number of messages will not work.

To avoid errors, I've switched off deleted message retention for the mailbox, and moved the messages from one large folder to multiple folders, and moved these one by one...

share|improve this question

This could be a permissions issue, make sure the account you are exporting with has rights to send as and recieve as on that account.

That said, if it's exporting some mail then it's unlikely that it is that. One thing you can try is to create a new mailbox database and move this mailbox there, then try an export.

share|improve this answer
looks like permissions is not the issue. However, moving the messages to another mailbox or even a different folder is working. See update – grojo Mar 12 '10 at 11:42

As I am not much comfortable with technical terms and codes, I am using Stellar EDB to PST converter tool for exporting all the required mailboxes.The best fact about this tool is it can even export very heavy folders and compatible with all major versions of Outlook And Exchange.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.