Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Why is the Microsoft Exchange Migration tool sending mailboxes to a database other than the one I select?

Posted on 2015-01-18
4
Medium Priority
?
57 Views
Last Modified: 2015-05-19
When using the MS Exchange Migration tool through the Exchange Admin center (http interface) to move mailboxes, the migration tool sent the mailbox to a completely different database than the one selected.  We have three databases, db1, db2, and spamdb.  We are moving servers to a datacenter offsite.  DB1 and SPAMDB are local to each other (i.e. on the same server) and DB2 is the datacenter.  All mailboxes are on DB1.

When I migrated mailboxes to DB2, some actually went and others went to the SPAMDB.  Now, when I individually select the mailboxes in SPAMDB to migration to DB2, it tells me it migrated fine but I look and they're all still on SPAMDB.

Any suggestions?
0
Comment
Question by:jhudson1977
  • 3
4 Comments
 
LVL 4

Expert Comment

by:pcmghouse
ID: 40556912
can you please check if you have the database excluded from provisioning. manual moves should work but there is a bug.
get-mailboxdatabase db2|fl isexcludedfromprovisioning
0
 

Author Comment

by:jhudson1977
ID: 40556976
I guess I have another issue I need to figure out first.  I ran the above command and got:

"The operation couldn't be performed because object 'db2' couldn't be found..."
0
 

Accepted Solution

by:
jhudson1977 earned 0 total points
ID: 40558780
Well, to fix this, I did a crash course in EMS.

I first found out that all of the move requests were getting in the way so I removed all of those using:
     "get-moverequest -movestatus completed|remove -moverequest"

Then, I did a batch move of all mailboxes in "spamdb1" back to "db1" by:
     "get-mailbox -database spamdb1|New-moverequest -BatchName "WhateverINamedIt"

Then, I did another clear of all the move requests using the commands from step 1.

I guess this was set to simply move back to the database on the local server as I didn't specify "db1".  So, in hindsight I would probably specify the target database next time (see command set below).

But, when that was all done, I went to the Exchange Admin Console (web interface) and validated that it saw everything where it was supposed to be.  Then, for giggles, I tried another migration of five small mailboxes using this interface.  It got all wonky again.  So I decided I would use the EMS again for the batch move.

I did one mailbox just to make sure I had the command correct (and it worked) and then went for the whole banana tree using:

     "get-mailbox -database db1|New-MoveRequest -TargetDatabase db2 -BatchName "WhateverYouWantToCallIt"

Everything queued up and the first three moved fine.

So, I guess the moral of the story is learn and use EMS because outside of learning the syntax, it gave me zero headaches.
0
 

Author Closing Comment

by:jhudson1977
ID: 40784721
I accepted my comment as the solution because it worked.  Not sure what else to say.  I included all the code I used in PowerShell to assist others who might run into this issue.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question