A method of moving multiple mailboxes (in bulk) to another database in an Exchange 2010/2013/2016 environment...
There are often cases where administrators may need to merge two mailbox databases to one, or move all mailboxes to other mailboxes.
Questions about this process have been frequently popping up at Experts Exchange of late, so I've decided to write an article explaining how to move Microsoft Exchange mailboxes in a bulk fashion, thus saving a lot of time.
First, let's view all the mailboxes in the database using the following command;
Get-Mailbox -Database Mailboxdb02
Now let's try to move in bulk. Mailboxdb02 is the old database name and Mailboxdb01 is the new database name.
Get-Mailbox -Database Mailboxdb02 | New-MoveRequest - TargetDatabase Mailboxdb01 -BatchName "Mailboxdb02to01"
Let's check on the progress. You can also set, suspend, remove, resume, and Get-MoveRequestStatistics where we are going to use the last one next.
What we can do instead, is use piping the Get-MorvRequest and Get-MoveRequestStaticstics. Remember, this will not only display just this last jump if previous jobs are not removed after completion.
Get-MoveRequest | Get-MoveRequestStaticstics
Now let's remove MoveRequest by issuing the following command:
Get-MoveRequest | Remove-MoveRequest
Let's run Get-MoveRequest again to verify that nothing shows up.
Now all your mailboxes have been moved to a different database.
To get additional support on this process, I encourage you to use the Ask a Question feature at Experts Exchange.
If you found this helpful, please click the Thumbs Up button below and please do share any comments below.
Author: MAS - EE MVE