We help IT Professionals succeed at work.

re-home one user account in exchange 2013


I've got a group of exchange 2013 users working out of a dial-tone mailbox that we are likely going to keep using as the primary database.  I have the "old" exchange database mounted.  All users have been re-homed to new database (dial tone)

I would like to re-home just ONE user BACK to the original database but can't figure out how to do that.  the previous getmailbox command did all the users at once.

It would also be helpful to know if there is any way to export a mailbox on the OLD database to pst.  

thanks much!
Watch Question

It's been a while since I've managed Exchange, but I don't know how to re-home accounts.  In Exchange Management Console, I believe the syntax for exporting a mailbox is like this:
New-MailboxExportRequest -Mailbox <user> -FilePath \\server\sharefolder\file.pst

Open in new window

As for the get-mailbox command to find one user, that would be something like this:
Get-Mailbox -Identity <value>

Open in new window

Value can be:
Distinguished name (DN)
Display name
Email address


Thanks, I do know those basic commands. I'm looking specifically for the commands to specify one user for the rehome and to export from a specific database.
I THINK this is the answer to one of my questions (rehoming)
still wondering about an export request command from the non-primary database..


Gather mailbox database
Get-Mailbox <identity> | select MailboxDatabase

Rehome mailbox (set different database to mailbox)

Get-Mailbox <identity> | Set-Mailbox -Database <DB identity>
Get-mailbox x9xxxx | Set-Mailbox -Database MDB12

Confirm Rehoming mailbox "domain.local/Persons/Administrators/test/CZ/X9XXX" to database "MDB12". This operation will only modify the mailbox's Active Directory configuration. Be aware that the current mailbox content will become inaccessible to the user. [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"):
Use Clean-MailboxDatabase on old database to see the mailbox in disconnected mailboxes.

Get-MailboxDatabase <old MDB identity> | Clean-MailboxDatabase
Your old data will be removed according your Exchange configuration or you can force deletion by command Remove-StoreMailbox <your old data mailbox identity> as well described here:

Your mailbox is clean.
this command worked perfectly for me:

Get-mailbox username | Set-Mailbox -Database databaseyouwanttorehometo


Answered my own main question.... and now that the mailbox is re-homed to the database I want, I can export the PST. still not sure on how to export from the database the user account was re-homed to.  Found answer on blog post referenced above