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

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

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

Office365 to Office365 Migration for FREE – Step by Step

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

Change the jd0e.com MX record to point to the agzsolt.com on-prem server

Office365 to Office365 Migration for FREE – Step by Step

Because of this change the incoming mails to @jd0e.com will be directed to the mail.agzsolt.com server where the migrated mailboxes will sit or if no local mailbox is found by the server it forwards them to the cloud where the cloud servers will find the route to the correct tenant.

Office365 to Office365 Migration for FREE – Step by Step

Now test the mail flow to verify the emails are still arriving to the @jd0e.com mailboxes: we send an email from a Gmail address to a jd0e.com mailbox. Note that the jd0e.com MX record has already been changed to the destination on-prem server (mail.agzsolt.com). Also the SPF record is updated accordingly to prevent the sent emails to be put in the recipient’s junk folder.

Office365 to Office365 Migration for FREE – Step by Step
Office365 to Office365 Migration for FREE – Step by Step

The email has arrived without an issue!

Disable Federation

First we need to disable ADFS before we can proceed and cut dirsync to make the mailboxes fully cloud-managed.

Let’s see how the OWA portal behaves. As soon as we try to log in on https://outlook.office365.com it redirects us to the local ADFS proxy server for authentication

Office365 to Office365 Migration for FREE – Step by Step

We can see on dc.jd0e.com server that the domain is federated:

Office365 to Office365 Migration for FREE – Step by Step

Now we make the domain standalone. First we connect to the ADFS server

Set-MsolADFSContext -Computer adfs.jd0e.com 

And set the domain to standard:

Convert-MsolDomainToStandard -DomainName jd0e.com -SkipUserConversion:$true -PasswordFile c:\passwdfile.txt 

Setting the authentication method as well:

Set-MsolDomainAuthentication -Authentication managed -DomainName jd0e.com 

At this point the domain becomes cloud-managed again, that we will confirm

Office365 to Office365 Migration for FREE – Step by Step

To see if the authentication works we check the login interface again:

Office365 to Office365 Migration for FREE – Step by Step

We are in, the authentication is happening in the cloud with the AD password that is synced with DirSync! Excellent!

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
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}