• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Short Guides for IT Professionals

MENUMENU
  • HOME
  • ALL TOPICS
    • Active Directory
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Virtualization
    • Web
    • Tools
  • ABOUT
  • SUBSCRIBE
Home » Office365 to Office365 Migration for FREE – Step by Step

Office365 to Office365 Migration for FREE – Step by Step

March 21, 2020 - by Zsolt Agoston - last edited on January 17, 2021

These days it’s a common scenario to see a company acquiring another, and having both organizations hosting their email service in the cloud using Office 365. Unfortunately Microsoft doesn’t provide us with easy to use tools - and ways - to simply merge the two company’s cloud tenants, which gives other companies room to offer their cloud migration services, using their own proprietary software, which is probably a convenient way for system administrators but surely not ideal for mail flow or for the users. They technically offer their proprietary software to connect to both organizations, create the corresponding new mailboxes in the target tenant, copy the data over and after a final synchronization they remove the source mailbox and finalize the target. Now the first of the two biggest problems with this approach is that we need to purchase extra licenses for the target tenant to accommodate the new mailboxes until the other tenant is demolished and those licenses can be transferred over: it’s inconvenient, costs extra and it’s hard to rely on Microsoft to make the transfer fast – which can be delayed by many things. The other thing is the fact that we cannot have the same domain name in two tenants at the same time, you can’t use the source company’s existing email addresses on the target tenant until all of the mailboxes are migrated over and the domain is removed from the source.

Luckily with a little effort there is a way to maintain perfect mail flow during the migration while users are able to use their original email addresses, the same mailbox profile in their Outlook, with no need to purchase extra licenses not even temporarily and with this method we only use the built-in functions of Microsoft EOL and Exchange 2013.

So enough talking, let’s jump into it!

This guide simulates a scenario where a company called “Jd0e Inc” (in our case) was acquired by “Agzsolt Inc”. They both use a hybrid Office365 environment, in this guide we focus on the email service. Our goal is to merge Jd0e into the Agzsolt tenant while we maintain mail- and workflow the whole time.

To make the situation a little more complex, the source Jd0e tenant is using ADFS for single sign-on functionality. Also the Jd0e users are still using the old 2010 version of Outlook so we stick with it here.

In our example agzsolt.com is the destination tenant and jd0e.com is the organization to be moved the mailboxes from.

The starting scenario

Destination:

agzsolt.com

Hybrid

       O365: agzsolt.onmicrosoft.com tenant. agzsolt.com is the default domain

       Onprem: Exchange 2013 CU18 server: 51.143.185.87

Office365 to Office365 Migration for FREE – Step by Step

Source:

Jd0e.com

Hybrid and ADFS federated

       O365: jdoe.onmicrosoft.com tenant; jd0e.com as the default domain

       Onprem: Exchange 2013 CU18 server+DC: 51.143.157.86

                         Adfs proxy: 51.143.188.208

Office365 to Office365 Migration for FREE – Step by Step

As expected, the incoming emails are directed to the corresponding on-prem mail server, where they are forwarded into the cloud if the target mailbox is not found locally with the help of to the hybrid setup. To visualize the mail flow now:

Office365 to Office365 Migration for FREE – Step by Step

Mailbox situation:

Destination – agzsolt.com:

Office365 to Office365 Migration for FREE – Step by Step

Source – jd0e.com:

Office365 to Office365 Migration for FREE – Step by Step

Prepare the destination on-prem server

  1. Add jd0e.com to the accepted domain list
Office365 to Office365 Migration for FREE – Step by Step

2. If not already done, create a Send Connector for the cloud

Office365 to Office365 Migration for FREE – Step by Step
Pages: Page 1 Page 2 Page 3 Page 4 Page 5

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • The starting scenario
  • Mailbox situation:
  • Prepare the destination on-prem server
  • Change the jd0e.com MX record to point to the agzsolt.com on-prem server
  • Disable Federation
  • Cut opentechtips.com dirsync (can take up to 72 hours to complete), or…
  • Create jd0e.com users in the agzsolt.com local AD in a non-synced OU
  • users.csv
  • Configure the cross-forest hybrid environment
  • Sync the MSOL attributes into the agzsolt.com local AD accounts
  • Migrate users to agzsolt.com on-prem
  • Strip down the old tenant
  • Sorting the post-migration tasks: permissions check, distribution lists and contacts creation
  • MIGRATE BACK TO THE CLOUD
  • UpToTheCloud.csv
  • Script:
  • Start the migration
  • Now it’s time to complete the migration batch
  • Tidying up

  • Terms of Use
  • Disclaimer
  • Privacy Policy