Applies to: Office 365 for enterprises, Live@edu
Topic Last Modified: 2011-12-19
You can use E-mail Migration in the Exchange Control Panel to migrate a subset of your on-premises mailboxes to the cloud. This process is called a staged Exchange migration. It allows you to move some mailboxes to the cloud while maintaining the rest of the mailboxes in your organization's on-premises Exchange environment. You can also use this type of migration as an intermediate step to moving completely to a cloud-based Exchange organization.
Important: |
|---|
You can’t use a staged Exchange migration to migrate Exchange 2010 mailboxes. If you have fewer than 1,000 Exchange 2010 mailboxes in your organization, you can use a cutover Exchange migration. If you have more than 1,000 Exchange 2010 mailboxes, you can implement a hybrid deployment. For more information, see the following:
|
With a staged Exchange migration, you only migrate user mailboxes and resource mailboxes. Directory synchronization replicates other recipient types, such as distribution groups, external contacts, and mail-enabled users to your cloud-based organization.
In this topic
-
What happens during a staged Exchange migration
-
Before you begin
-
Step 1 Start a staged Exchange migration batch
-
Step 2 Configure the connection settings
-
Step 3 Upload the CSV file
-
Step 4 Run the migration
-
Step 5 Convert on-premises mailboxes to mail-enabled users
-
Step 6 Run additional migration batches
-
Step 7 Complete the migration
-
Step 8 Remove your on-premises Exchange organization (optional)
-
Best practices
-
Next steps
What happens during a staged Exchange migration
When you use a staged Exchange migration and CSV file to migrate on-premises Exchange mailboxes to the cloud, the migration service does the following:
-
It verifies that OLSync or the Microsoft Online Services Directory Synchronization tool is enabled for your cloud-based organization.
-
It checks that a mail-enabled user (MEU) exists in the cloud-based e-mail organization for each entry in the CSV file.
-
It converts the MEU to a mailbox.
-
It configures mail forwarding by populating the TargetAddress property on the on-premises mailbox with the e-mail address of the cloud-based mailbox. This enables e-mail sent to an on-premises mailbox to be forwarded to the corresponding cloud-based mailbox.
-
It e-mails a report that lists the cloud-based mailboxes that were successfully created and for which e-mail forwarding was configured. At this point, you can tell users to start using their new cloud-based mailbox. This report also lists any migration errors.
-
It migrates e-mail messages, contacts, and calendar items from the Exchange mailboxes to the corresponding cloud-based mailboxes. After the initial migration, the Exchange and cloud-based mailboxes aren't synchronized. New e-mail sent to the Exchange mailbox is forwarded to the corresponding cloud-based mailbox.
-
It e-mails a final report when the data migration is complete.
Before you begin
Be sure to plan your e-mail migration carefully, especially verifying your ability to connect to your Exchange server. When you plan, check out Best practices.
-
Install and configure a directory synchronization tool for your cloud-based organization OLSync or the Microsoft Online Services Directory Synchronization tool must be running to perform a staged e-mail migration. The directory synchronization tool creates the MEUs that are converted to mailboxes during the migration. If OLSync or the Microsoft Online Services Directory Synchronization tool isn't installed, you can only perform a cutover Exchange migration that migrates all your on-premises mailboxes to the cloud. For more information about the different types of migration, see E-Mail Migration Overview.
For more information about how to install a directory synchronization tool, see the following:
-
Microsoft Live@edu Implement Outlook Live Directory Sync for Live@edu
-
Office 365 for enterprises Active Directory synchronization: Roadmap
-
Microsoft Live@edu Implement Outlook Live Directory Sync for Live@edu
-
Plan for user identity management After your on-premises mailboxes are migrated to the cloud, the synchronization process continues to update the user attributes on the mailbox according to changes made in the on-premises Active Directory. This means that the “source of authority” for managing user objects is your on-premises directory, and that you can’t manage user mailbox properties in Exchange Online. But after you perform a staged Exchange migration you can configure the Microsoft Online Services Directory Synchronization tool so that the source of authority is the Office 365 directory. This lets you manage mailbox properties in Exchange Online. For more information about user identity management after migrating mailboxes to Office 365, see the following:
-
Configure Outlook Anywhere on your on-premises Exchange server The migration service uses RPC over HTTP, or Outlook Anywhere, to connect to your on-premises Exchange server. For information about how to set up Outlook Anywhere for Exchange 2007 and Exchange 2003, see the following:
-
Exchange 2007: How to Enable Outlook Anywhere
-
Exchange 2003: Deployment Scenarios for RPC over HTTP
-
How to Configure Outlook Anywhere with Exchange 2003
-
Exchange 2007: How to Enable Outlook Anywhere
-
Verify that you can connect to your Exchange organization using Outlook Anywhere Try one of these connection methods:
-
Use Microsoft Office Outlook from outside your corporate network to connect to Exchange.
-
Use the Microsoft Exchange Remote Connectivity Analyzer (ExRCA) to test your connection settings.
-
Use Microsoft Office Outlook from outside your corporate network to connect to Exchange.
-
Prepare the CSV file Identify the group of users whose on-premises mailboxes you want to migrate to the cloud. Include these users in the CSV file that will make up the migration batch.
Important The CSV file for a staged Exchange migration batch can contain a maximum of 1,000 rows. To migrate more than a 1,000 mailboxes, you have to submit additional CSV files.
Here are the attributes to use for the mailboxes you want to migrate:
-
EmailAddress specifies the SMTP e-mail address for the on-premises mailbox. This attribute is required.
-
Password is the password that will be set on the new cloud-based mailbox. This attribute is optional.
-
ForceChangePassword specifies whether a user must change the password the first time they sign in to their new cloud-based mailbox. Use either
TrueorFalsefor the value of this parameter. This attribute is optional.
Important If you’ve implemented a single sign-on solution by deploying Active Directory Federation Services 2.0 in your on-premises organization, you must use False for the value of the ForceChangePassword attribute.
For more information, see Prepare a CSV File for a Staged Exchange Migration.EmailAddress,Password,ForceChangePassword pilarp@tailspintoys.com,P@ssw0rd,False tobyn@tailspintoys.com,P@ssw0rd,False iant@tailspintoys.com,P@ssw0rd,False
-
EmailAddress specifies the SMTP e-mail address for the on-premises mailbox. This attribute is required.
-
Assign the migration administrator permissions to access mailboxes in your Exchange organization The on-premises account that you use to run the migration must have the necessary permissions to access all user mailboxes. You can assign the Full Access permission for individual mailboxes or assign the Receive As permission for a mailbox database. For more information, see the following.
Exchange 2007
Exchange 2003
-
Microsoft Knowledge Base article 268754 - How to assign users or groups full access to other user mailboxes
-
Microsoft Knowledge Base article 821897 - How to assign service account access to all mailboxes in Exchange Server 2003
-
Microsoft Knowledge Base article 268754 - How to assign users or groups full access to other user mailboxes
-
Add your Exchange organization as an accepted domain of your cloud-based e-mail organization The migration service uses the SMTP address of your on-premises mailboxes to create the e-mail address for the new cloud-based mailboxes. If you are a Live@edu organization, migration will fail if your Exchange domain isn't an accepted domain (or the primary domain) of your cloud-based organization. For more information, see the following topics:
-
Disable unified messaging If the mailboxes you are migrating are enabled for unified messaging (UM), you have to disable UM on the mailboxes before you migrate them. You can then enable UM on the mailboxes after the migration is complete. For more information, see Plan to Migrate UM-Enabled Mailboxes.
Step 1 Start a staged Exchange migration batch
-
Select Manage My Organization > Users & Groups > E-Mail Migration > New. On the Welcome to E-mail Migration page, select one of the following migration types:
-
Exchange 2007 and later versions - Automatically detect connection settings with Autodiscover Select this option if you want the migration service to automatically connect to your on-premises Exchange server using the Autodiscover service.
-
Exchange 2003 and later versions - Manually specify connection settings Select this option if your on-premises messaging system is running Exchange 2003 or if you are running a later version but want to manually provide the connection settings to your on-premises mail server.
-
Exchange 2007 and later versions - Automatically detect connection settings with Autodiscover Select this option if you want the migration service to automatically connect to your on-premises Exchange server using the Autodiscover service.
-
Click Next after you select a migration type.
Step 2 Configure the connection settings
Provide the credentials and connection settings for your on-premises Exchange server depending on the migration type that you selected. Perform only one of the following tasks based on your migration type.
Automatically detect connection settings with Autodiscover
-
If you selected this migration type, configure the migration to use the Autodiscover service to detect the connection settings. The connection settings you configure will persist on this page the next time you start E-Mail Migration to run a new migration batch.
In this field… Do this… * Migration administrator e-mail address
Type the e-mail address for an administrator account that has access to your Exchange server and all mailboxes.
* Domain\Username
Type the username for the migration administrator account. Use the Domain\Username or UPN format.
* Password
Type the password for the migration administrator account.
Number of mailboxes to migrate simultaneously
Specify the number of connections to the Exchange server available to migrate mailboxes to the cloud. If the value is set to 3, the default value, you can migrate up to three mailboxes at the same time until all the mailboxes in the migration batch have been migrated. The maximum number of connections is 10. To learn more about how to optimize this setting, see Maximum Number of Connections to Your Mail Server.
-
Click Next. Microsoft Exchange tries to communicate with the on-premises Exchange server to verify the Autodiscover connection settings.
If the test connection isn't successful, you are prompted to manually specify the connection settings. You have to connect to the Exchange server to continue.
If you can’t connect to your on-premises Exchange server, see this video for troubleshooting tips.
When the test connection to the Exchange server is successful, the Start the Migration page is displayed.
Manually specify connection settings
-
If you selected this migration type, provide the connection settings to your Exchange server.
In this field… Do this… * Domain\Username
Type the username for the migration administrator account. Use the domain\username format.
* Password
Type the password for the migration administrator account.
* Exchange server
Type the FQDN of the on-premises Exchange server. For example, EXCH-MSG-1.tailspintoys.com.
* RPC proxy server
Type the FQDN of the RPC proxy server for the on-premises Exchange server. For example, mail.tailspintoys.com.
Authentication
Select
Basicas the authentication method used by the Exchange server.Number of mailboxes to migrate simultaneously
Specify the number of connections to the Exchange server available to migrate e-mail to cloud-based mailboxes. If the value is set to 3, the default value, you can migrate up to three mailboxes at the same time until all the mailboxes in the migration batch have been migrated. The maximum number of connections is 10. To learn more about how to optimize this setting, see Maximum Number of Connections to Your Mail Server.
-
Click Next. Microsoft Exchange tries to communicate with the on-premises Exchange server to verify the manual connection settings. If the test connection isn't successful, you'll be asked to verify the connection settings. You have to connect to the Exchange server to continue.
If you can’t connect to your on-premises Exchange server, see this video for troubleshooting tips.
If the test connection is successful, the migration service verifies that either OLSync or the Microsoft Online Services Directory Synchronization tool is enabled for your organization, and then displays the Select Mailboxes to Migrate page.
Note If OLSync or the Microsoft Online Services Directory Synchronization tool isn't enabled for your organization, the migration service displays a message that tells you it can't migrate all on-premises mailboxes to the cloud. If you want to perform a staged Exchange migration, you have to install and configure a directory synchronization tool and then restart E-mail Migration.
Step 3 Upload the CSV file
-
Click Browse to select the CSV file for the migration batch.
-
After you select the CSV file, click Next.
Important When you click Next, you are agreeing to give the migration service permission to make changes to the properties of the on-premises mailboxes to enable e-mail forwarding. For more information, see Give the Migration Service Permission to Configure Mail Forwarding for Cloud-based Mailboxes.
-
Microsoft Exchange checks the CSV file for the following:
-
It isn't empty.
-
It uses comma-separated formatting.
-
It doesn't contain more than 1,000 rows.
-
It includes only the allowed attributes in the header row, and verifies that the required EmailAddress attribute is included.
-
It contains rows with the same number of columns as the header row.
If the CSV file successfully passes these checks, you'll move on to the Start the migration page.
-
It isn't empty.
Step 4 Run the migration
In addition to the checks described in step 3, Microsoft Exchange also checks for data validation errors in the CSV file at this point in the process. If data validation errors are found, a warning and a link to the validation error report are displayed on the Start the migration page. The migration process isn't terminated if data validation errors are found, but on-premises mailboxes won't be migrated to the cloud for the rows that have errors.
For example, a data validation error is displayed if the on-premises mailbox can't be found using the SMTP address in the CSV file or if an MEU for an on-premises mailbox can't be found in the cloud-based e-mail organization. For more information, see Troubleshoot Migration Validation Errors.
-
Decide if you want Microsoft Exchange to send a status e-mail message to other users when the migration batch is done running. If so, click Browse to select one or more users.
-
Review the number of mailboxes that will be migrated.
-
To start processing the migration batch, click Run.
-
To cancel the current migration batch and return to step 1, click Start Over.
-
To start processing the migration batch, click Run.
What happens after you start the migration batch?
After you start the migration, two panes are displayed on the E-Mail Migration tab:
-
Active E-Mail Migration This pane contains the following information about the migration batch in progress:
-
The date and time when the migration batch was started, and the user who started the migration.
-
The total number of mailboxes to be created in the cloud.
-
The number of mailboxes from the current migration batch that have been created in your cloud-based organization. This field is updated throughout the migration.
-
The number of mailboxes actively being created in your cloud-based organization. This number corresponds to the number of mailboxes to migrate simultaneously that you specified when configuring the migration.
-
A link to the Active Mailbox Migration report, which shows detailed information about each mailbox that is being actively created. A compilation of this report is included in the status e-mail message sent to the administrator after the migration batch is done running.
-
The number of failed migrations.
-
A link to the Error Report for Active Migrations that documents each migration error found during the processing of the current migration batch. For each error, the report includes a suggestion for fixing the error. Use this information to address the cause of the error, and then start a new migration batch and submit a new CSV file with the fixes. For more information, see Troubleshoot Active Migration Errors.
periodically to refresh this pane during the processing of the current migration batch. When the migration batch is done, the Active E-Mail Migration pane is no longer displayed.
-
The date and time when the migration batch was started, and the user who started the migration.
-
E-Mail Migration When mailboxes are being actively migrated, this pane displays the number of mailboxes that have been successfully migrated to the cloud in previous migration batches. This number doesn't include the mailboxes being migrated in the current migration batch.
When the migration batch is finished, this pane also displays the total number of mailbox migrations that have failed and a link to the migration error report.
What happens when the migration service is done creating new mailboxes in the migration batch?
After the migration service is finished creating the cloud-based mailboxes and configuring mail forwarding by setting the TargetAddress property on the corresponding on-premises mailbox, it does the following:
-
It sends you a status e-mail message and a link to the Mailboxes Ready Report The report is a CSV file that lists all the mailboxes that were successfully created and configured for mail forwarding. At this point, you can tell your users to start using their new cloud-based mailbox because e-mail is no longer sent to their on-premises mailbox.
If there were errors during the migration, the status e-mail message also contains a link to an error report, which is a CSV file that contains a row for each mailbox that wasn't migrated or configured for mail forwarding.
-
It starts migrating data to the new cloud-based mailboxes The migration service starts to copy data from the on-premises mailbox to the corresponding cloud-based mailbox after the mailboxes in the migration batch are successfully migrated. After the mailbox data migration is complete for the migration batch, the migration service sends an e-mail message with a link to the Migration Complete Report. At this point, you can start another migration batch and submit a new CSV file.
Note After e-mail forwarding is configured and mailbox data has been copied to the cloud-based mailbox, mail sent to the cloud-based mailbox is not synchronized back to the on-premises mailbox.
Stop a migration batch
To stop a migration batch, in the Active E-Mail Migration pane, click Stop.
What happens when you click Stop? The creation of any mailbox currently being processed is stopped immediately and isn't completed. Stopping a migration batch won't affect mailboxes that have been migrated already.
After you stop a migration batch, you receive a status e-mail message that says how many mailboxes were successfully created in the cloud before the batch was stopped. This message also contains a link to the error report that identifies the active mailbox migrations that were in progress when the migration was stopped and the rows waiting to be migrated. The status message also contains a link to the Mailboxes Ready Report that identifies the mailboxes that were successfully migrated.
Step 5 Convert on-premises mailboxes to mail-enabled users
After a migration batch is finished running and you’ve verified that all mailboxes in the batch are successfully migrated and the initial synchronization of mailbox items to the cloud is complete, we recommend that you convert the on-premises mailboxes in the migration batch to mail-enabled users. Why? After a staged Exchange migration, a user has an on-premises mailbox and a cloud mailbox. Because mail sent to the user’s on-premises mailbox is forwarded to their cloud mailbox after migration, users need to connect to their cloud mailboxes to access their e-mail. But if a person uses Microsoft Outlook to open their mailbox, the Autodiscover service still tries to connect to the on-premises mailbox. After you convert on-premises mailboxes to mail-enabled users, the Autodiscover service uses the mail-enabled user to connect Outlook to the cloud mailbox after the user creates a new Outlook profile.
Another important reason to convert on-premises mailboxes to mail-enabled users is to retain proxy addresses from the cloud-based mailboxes by copying proxy addresses to the mail-enabled user. This lets you manage cloud-based users from your on-premises organization by using Active Directory. Also, if you decide to decommission your on-premises Exchange organization after all mailboxes are migrated to the cloud, the proxy addresses you’ve copied to the mail-enabled user will remain in your on-premises Active Directory.
For more information and to download scripts that you can run to convert mailboxes to mail-enabled users, see the following:
Step 6 Run additional migration batches
If there are errors in a migration batch or you want to migrate additional on-premises mailboxes to the cloud, you can start a new migration batch and submit a new CSV file that contains the information about the mailboxes you want to migrate.
You don't have to enter connections when you start a new migration batch because they persist from the previous batch. When you start a new migration batch, the migration service connects to your on-premises Exchange server and verifies that OLSync or the Microsoft Online Services Directory Synchronization tool is still installed and running. When this query is complete, the migration service prompts you to select the CSV file.
Re-run a migration batch to fix errors from previous migration batches
You can run a new migration batch and submit a CSV file that was used for a previous migration batch. This is a good way to fix any mail forwarding errors that occurred in a previous migration. If possible, use the failure description from error reports to fix errors, such as on-premises mailbox that can't be found using the SMTP address, before you resubmit a CSV file.
Here's how the migration service handles the migration requests in a CSV file:
-
If a row in the CSV file corresponds to a mailbox that has been migrated successfully in a previous migration batch, it will reconfigure mail routing by resetting the TargetAddress property on the on-premises mailbox.
-
If a row in the CSV file failed in a previous migration batch, the migration service will try to migrate it again and pick up from the point where the previous failure occurred. For example, if there was a failure during the data migration stage, the migration service will try to migrate the data again. If it failed when it configured mail forwarding by setting TargetAddress property on the on-premises mailbox, it will try to reset the property and, if successful, will then start the data migration stage.
-
If a row in the CSV file doesn’t correspond to any of the mailboxes that have been migrated, it converts the MEU to a new cloud-based mailbox, configures mail forwarding, and then migrates the mailbox data.
Step 7 Complete the migration
After you've migrated all your on-premises mailboxes to your cloud-based organization, you're ready to complete the migration. Follow these steps:
-
Configure your MX record to point to you cloud-based e-mail organization Until you change your MX record, e-mail sent to users is still routed to their Exchange mailboxes and then forwarded to the corresponding cloud-based mailboxes. When you configure your organization's MX record to point to your cloud-based e-mail organization, all e-mail is sent directly to the cloud-based mailboxes.
After you change the MX record and verify that all e-mail is being sent directly to cloud-based mailboxes, you're ready to complete the migration.
Important It can take from 24 to 72 hours for the updated MX record to be propagated. Wait at least 24 hours after you change the MX record before you complete the migration. Verify that mail is being routed to cloud-based mailboxes before you complete the migration.
-
Complete the overall migration process Click Complete Migration in the E-Mail Migration pane. What happens when you click Complete Migration?
-
The migration service cleans up any records related to the previous migration batches.
-
The migration service checks to see if there are any MEUs in your cloud-based organization that correspond to on-premises mailboxes that haven't been migrated to the cloud. If it finds MEUs that haven't been converted to mailboxes, it displays a warning message.
-
Microsoft Exchange sends a final status e-mail message after the migration is complete.
-
The migration service cleans up any records related to the previous migration batches.
Step 8 Remove your on-premises Exchange organization (optional)
After you’ve migrated all on-premises mailboxes to the cloud, converted all on-premises mailboxes to mail-enabled users, and have verified that all e-mail is being routed directly to the cloud mailboxes, you may no longer need to maintain all your on-premises Exchange servers for mail delivery. If this is the case, you can uninstall Exchange from your servers in your on-premises organization. However, we strongly recommended that you maintain at least one Exchange server so that you have access to Exchange System Manager (Exchange 2003) or Exchange Management Console/Exchange Management Shell (Exchange 2007) to manage mail-related attributes on the on-premises mail-enabled users. For Exchange 2007, the Exchange server that you maintain should have the Hub Transport, Client Access, and Mailbox server roles installed. For more information, see the following:
Caution: |
|---|
| Removing your Exchange organization can have unintended consequences. Before uninstalling Exchange from servers in your on-premises organization or removing your entire on-premises Exchange organization, we recommend that you contact Microsoft Support. |
Best practices
Here are some tips to optimize your Exchange migration:
-
Change the DNS Time-to-Live (TTL) setting on your MX record Before you start to migrate mailboxes, change the DNS TTL setting on your current MX record to a shorter interval, such as 3600 seconds (one hour). Then, when you change your MX record to point to your cloud-based e-mail organization after all mailboxes are migrated, the updated MX record should propagate more quickly because of the shortened TTL interval.
-
Communicate with your users Give users a heads-up that you are migrating their on-premises mailbox to the cloud. Consider the following:
-
Ask users to delete old or unnecessary e-mail messages from their Exchange mailbox before migration. This helps reduce the amount of data that has to be migrated and can help reduce the overall migration time. Or you can clean up their mailboxes yourself.
-
Suggest that users back up their Inbox.
-
Ask users to delete old or unnecessary e-mail messages from their Exchange mailbox before migration. This helps reduce the amount of data that has to be migrated and can help reduce the overall migration time. Or you can clean up their mailboxes yourself.
-
When you receive the Mailboxes Ready Report for a migration batch, tell users to start using their cloud-based mailboxes to send and receive e-mail Give them the password to their new cloud-based mailbox and send them links to the following topics to help them connect to their cloud-based mailbox:
-
Require users to change their password In the CSV file, set the ForceChangePassword attribute to True. This forces users to change the password the first time they sign in to their new cloud-based mailbox and helps ensure that only the user knows the password. Be sure to encourage people to use strong passwords.
Tip If you use a unique password for each row in the CSV file, you can use the mail merge process in Microsoft Office Word and an edited version of your CSV file to provide users with the password for their new cloud-based accounts. See Send a Welcome Message to New Users.
Next steps
-
Assign licenses to Office 365 users If you have a Microsoft Office 365 e-mail organization, you must assign licenses to new mailboxes or they will be disabled when the grace period ends. For more information, see Assign a License to New Mailboxes in Office 365.
-
Create an Autodiscover DNS record After all on-premises mailboxes are migrated to the cloud, you can configure an Autodiscover DNS record for your cloud-based organization to enable users to connect to their new cloud-based mailbox with Microsoft Outlook and mobile clients. This new Autodiscover DNS record has to use the same namespace that you’re using for your cloud-based organization. For example, if your cloud-based namespace is cloud.contoso.com, the Autodiscover DNS record you need to create is autodiscover.cloud.contoso.com.
Exchange Online uses a CNAME record to implement the Autodiscover service for Outlook and mobile clients. The Autodiscover CNAME record must contain the following information:
-
Alias autodiscover
-
Target autodiscover.outlook.com
-
Alias autodiscover

Important:
Caution: