Audience: Exchange/Office 365 for Enterprises Administrators
Author: David Strome, Senior Technical Writer - Exchange

In a hybrid deployment, you have mailboxes in both your on-premises and cloud-based organizations. As part of on-going recipient management, you’ll often have a need to move mailboxes between the two organizations. This could be because a user is moving departments or because a manager is being assigned a new delegate, and so on. While moving mailboxes from the on-premises organization to the cloud-based organization uses the New Remote Move Request wizard, moving mailboxes from the cloud-based organization to the on-premises organization requires a few additional configuration steps.

Moving Cloud-Based Mailboxes to the On-Premises Organization

Use these steps to move mailboxes from the cloud-based organization to your on-premises organization. The steps necessary to move a mailbox back to the on-premises organization depend on how the mailbox was originally added to the cloud-based organization:

  • Created in the cloud-based organization   If the mailbox was created in the cloud-based organization, you need to perform some steps before you can move the mailbox back to the on-premises organization. See the Configure on-premises remote mailbox section for more information.
  • Moved to the cloud-based organization   If the mailbox was moved to the cloud-based organization, you don’t need to perform any additional steps before you move the mailbox. You can move the mailbox back to the on-premises organization by using the steps in the Move mailbox to on-premises organization section.

If you want to know how to move a mailbox to the cloud-based organization, see the steps for the version of Exchange installed in your on-premises organization:

Note   These steps assume that you've configured a hybrid organization using the Exchange Server Deployment Assistant (ExDeploy). For more information about ExDeploy and hybrid deployments, see Exchange Server Deployment Assistant and click on Coexistence. In the current version of the deployment assistant, a hybrid deployment is referred to as a coexistence deployment.

Configure on-premises remote mailbox

If the cloud mailbox that you want to move to the on-premises organization was originally created in the cloud-based organization, you’ll need to configure the ExchangeGUID property on the associated on-premises remote mailbox. You’ll need to do this because when the mailbox is created in the cloud-based organization, the value stored in the ExchangeGUID property on the cloud-based mailbox isn’t synchronized back to the associated on-premises remote mailbox. To move a mailbox, the value stored in the ExchangeGUID property must be the same on the cloud-based mailbox and on the associated on-premises remote mailbox.

Use the following steps to configure the ExchangeGUID property on the on-premises remote mailbox:

  1. Open the Exchange Management Shell on your hybrid server.
  2. Check to see whether the ExchangeGUID property on the on-premises remote mailbox is set by running the following command:
    Get-RemoteMailbox <alias of cloud mailbox to move> | Format-List ExchangeGUID
  3. If the ExchangeGUID property returned in step 2 is all zeros, continue with step 4. Otherwise, skip to step 7.
  4. Open Windows PowerShell on the hybrid server (do not use the Exchange Management Shell window) and connect to Exchange Online PowerShell. See Configure Management Interfaces for Coexistence with Exchange 2010 for more information on how to connect to Exchange Online PowerShell.
  5. Use the following command to retrieve the ExchangeGUID of the mailbox you want to move and copy it or write it down:
    Get-Mailbox <alias of mailbox to move> | Format-List ExchangeGUID
  6. In the Exchange Management Shell window, use the following command to set the value of the ExchangeGUID property on the on-premises remote mailbox to the value of the ExchangeGUID property retrieved in step 5:
    Set-RemoteMailbox <alias of cloud mailbox to move> -ExchangeGUID <GUID>
  7. Repeat steps 1-6 for each additional mailbox you want to move to the on-premises organization.
  8. On your Active Directory synchronization server, open DirSyncConfigShell.psc1 and run the following command to force directory replication:
    Start-OnlineCoexistenceSync

After you’ve configured the on-premises remote mailboxes associated with the mailboxes you want to move, see the Move mailbox to the on-premises organization section for steps on how move the mailboxes to the on-premises organization. 

Move mailbox to the on-premises organization

Use the following steps to move a mailbox from the cloud-based organization back to the on-premises organization.

Note The target mailbox database where you want to move the mailbox to can’t be located on a server running the Hybrid Edition of Exchange 2010.

Important If you move a mailbox from the cloud-based organization to an Exchange 2003 or Exchange 2007 server in your on-premises organization, messages in the Recoverable Items folder of the mailbox aren't preserved after the move. Messages in the Recoverable Items folder are preserved only when moving a mailbox from the cloud-based organization to an on-premises Exchange 2010 server. The Recoverable Items folder is known as the dumpster in Exchange 2007.

For more information about the Recoverable Items folder, see Understanding Recoverable Items.

  1. On your hybrid server, open the Exchange Management Console.
  2. Navigate to the Recipient Configuration container in the cloud-based organization node.
  3. Right-click the mailboxes you want to move to the on-premises organization and select New Remote Move Request.
  4. On the Introduction screen, click Next.
  5. Verify the on-premises organization is listed in the Target forest list box.
  6. In the FQDN of the Mailbox Replication Service proxy server in the target forest text box, specify the FQDN of the on-premises hybrid server. For example, mail2.contoso.com.
  7. Select Use the following target forest’s credential.
  8. Specify the username and password of an administrative account in the on-premises organization and click Next.
  9. Click Browse next to Target Delivery Domain and select the delivery domain for your on-premises organization. For example, contoso.com.
  10. In the Remote Target Database, specify the destination 2003 mailbox database. The format depends on the version of Exchange where the target database is located:
    • Exchange 2003 and 2007   Use the format <server>\<storage group>\<database name>. For example, Ex2007\First Storage Group\Mailbox Database
    • Exchange 2010   Use the format <server>\<database name>. For example, Ex2010\Sales Database.
  11. Click Next, then click New.
  12. The mailbox should now move to the on-premises organization. Once completed, the wizard should report a success.
    Important: Due to a known issue, you may receive an Exception error stating that a type couldn’t be loaded. You can ignore this exception.
  13. On your Active Directory synchronization server, open DirSyncConfigShell.psc1 and run the following command to force directory replication:
    Start-OnlineCoexistenceSync

Problems with Moving Mailboxes to Your On-Premises Organization?

Contact support or post a question on the Exchange Online Migration and Coexistence forum. Be sure to include the following when posting to the forum:

  • A detailed description of the mailbox move problem.
  • Which direction the move is not working.