How to purge an orphaned mailbox

Sometimes things can go wrong during a mailbox migration which will cause a mailbox to be orphaned. Things like a network link going down or the migration hanging on "Saving changes to the directory". If you have to forcibly terminate the migration task, you may find yourself left with an orphaned (disconnected) mailbox on the destination server. Then, when you try to purge the mailbox, you may receive this message:

ID no: c1034ad6
The operation cannot be performed because this mailbox was already reconnected to an existing user.

Here are some of your options:

Try migrating the mailbox again to the same destination. Exchange should know the orphan exists from a failed mailbox move and will automatically purge it, and attempt the move again. This does not always not work though.

Another alternative, is use ESM to have a look at the mailbox store properties on the store with the disconnected mailbox. On the Limits tab, do you have a check mark next to "Do not permanently delete mailboxes and items until the store has been backed up"? If you do, try backing up the store and purging the mailbox again.

Here's the final option (which worked for me) if all else fails, and you should ensure you have a recent backup of your stores before doing this. Using ADUC, find the other mailbox in your organisation that has the same display name as your disconnected mailbox. Right click on the user and use the Exchange tasks wizard to delete the mailbox from that user. Now go back into ESM and run the cleanup agent on your stores, and both mailboxes will be in a disconnected state. You will then be able to purge the orphan you want to get rid of. Next you should simply be able to right-click on the remaining orphan mailbox in ESM and use the 'reconnect' option, and specify the user account the orphan belongs to.

Edit: One more method as suggested below is setting the "Keep deleted mailboxes" option to 0 days and then running the cleanup agent on that mailbox store. Judging by more recent comments this seems to do the trick. Thanks Mike!

Technorati Tags: ,

17 Responses to “How to purge an orphaned mailbox”


  1. 1 deko

    Great, the last point works fine. Thank you

  2. 2 Omran

    Great post, straight to the point, made my day dude.

  3. 3 Mike

    I was able to get around the problem by setting the Keep Deleted Mailboxes for 0 days. I then reran the cleanup agent and they were gone.

  4. 4 William

    Mike's suggestion:

    "I was able to get around the problem by setting the Keep Deleted Mailboxes for 0 days. I then reran the cleanup agent and they were gone"

    worked for me as well

  5. 5 Alan

    Setting this in the Limits Tab worked for me too.

    unorthodox but effective!

    thanks Mike

  6. 6 Karla

    Fantastic! The last option worked for me as well - goodbye 10Gb mailbox...

    Thanks so much Mike

  7. 7 compitiso

    Great advice. Keep Deleted Mailboxes for 0 days worked for me too. life saver(at least weeken saver!)....thanks.

  8. 8 Bios

    Wow, this is a nice tip. Thanks a lot for sharing this tidbit.

  9. 9 Sham

    Yeah great the keep deleted option removed the orphened accoutns from our mail move a treat - can stop worrying and getting grey hairs now - weel done.

  10. 10 FADEL LUBBOS

    Thank you, i already did the last one but without removing Do not permanently delete mailboxes and items until the store has been backed up..

    know i get rid of the Orphan mailbox, COOL :)

    FADEL J LUBBOS

  11. 11 Rama

    This solution works perfectly.

    Set the "Keep deleted mailboxes" option to 0 ; Selected "Do not permanently delete mailboxes and items until the store has been backed up"; Backed up the Mailstore;Ran Cleanup agent and all orphaned mailboxes disappeared.

    Thanks
    Rama

  12. 12 Ludek

    Big Thanks for 0 days :) it works for me perfectly.

  13. 13 Adrian

    Running "Keep deleted mailboxes" option to 0 worked

  14. 14 Mike

    Ben I really dont know how to thank you, I had corruption on one of my edb files, created another store and moved all the mailboxes to the new one, as per MS instructions, but had one which errored, also happened to be my Managing Director :(
    Did the bit about ADUC and worked like a dream, finished off a 13 hour nightmare, but final mailbox is recovering and everything is working.

    Thanks once again

    Mike

  15. 15 Ben Stokes

    Mike: I'm glad I could help!

  16. 16 Avi R
  17. 17 JJ

    The deleted for 0 days worked a treat ... cheers

Leave a Reply