EdbMails EDB Recovery and Migration software
  • Products
    Exchange EDB / Email Recovery Tools
    • EDB Recovery and MigrationRecover EDB to PST, EDB to Office 365 and Exchange NO Duplicate Migration
    • OST Recovery and MigrationRecover OST to PST, OST to Office 365 and Exchange Migration
    • PST Recovery and MigrationRecover Outlook PST, PST to Office 365 and Exchange Migration
    • MBOX Export and MigrationExport MBOX to PST, MBOX to Office 365 and Exchange Migration
    • NSF Export and MigrationExport NSF to PST, NSF to Office 365 and Exchange Migration
    • EML to PST ExportEML files export to Outlook PST format
    • PST to MSG ExportOutlook PST files export to MSG format
    • MSG to PST ExportExport MSG files Outlook PST files
    Exchange and Office 365 Migration
    • Exchange Server MigrationMigrate Exchange 2007, 2010, 2013, 2016, 2019 to Office 365 tenants. Also, migrate between Exchange servers and PST
    • Office 365 MigrationMigrate Source Office 365 tenants to Destination Office 365 tenants. Also, migrate to Exchange Server and PST
    • IMAP Email Backup & MigrationMigrate all IMAP email servers (Gmail, Zimbra, Zoho, Yahoo etc.), Office 365, Exchange and Backup to Outlook PST
    • SharePoint Online MigrationMigrate documents, files and folders from SharePoint sites
    • OneDrive for Business MigrationMigrate documents, files and folders from OneDrive
    • Microsoft Teams MigrationMigrate Teams, documents, files and folders etc.
    Exchange and Office 365 Backup
    • Office 365 BackupIncremental, Granular, Encrypted and Compressed Office 365 Mailboxes Backup
    • Exchange Server BackupIncremental, Granular, Encrypted and Compressed Exchange Mailboxes Backup
    • SharePoint, OneDrive & Teams BackupBackup Online site collections, Team sites, Office 365 groups, all documents etc.
    • Duplicate Remover - Office 365 & Exchange Remove duplicate emails, calendars, contacts, journal etc. from Office 365 and Exchange
    Go to products
  • Features
  • FAQ
  • Pricing
  • Download
  • Support
  • Sign in
User’s Manual
Exchange Server Migration

User Manual

User Manual

  • Exchange Migration Overview
  • Initial Setup
  • System Requirements
  • Installation
    • Installation process
    • Reinstall or Upgrade
    • How to uninstall
    • Migration speed
  • FAQ
    • General
    • Migration Free Trial / Demo
    • Migration License
    • Before Migration
    • Migration - Steps
    • After Migration
  • Videos
    • Exchange to Exchange
    • Exchange to Office 365
    • Exchange to IMAP
    • Exchange to PST
    • Public Folder to Office 365
    • Archive Mailbox to Office 365
    • Public Folder to Exchange
    • Archive Mailbox to Exchange
    • Restore Bulk PST files to Exchange
  • Screenshots
    • Exchange to Exchange
    • Exchange to Office 365
    • Exchange to PST
  • How it works?
    • Exchange to Exchange
    • Exchange to Office 365
    • Exchange to PST
    • Exchange to IMAP
    • Exchange Public Folder to Office 365
    • Exchange Public Folder to Exchange
    • Exchange 2010 to 2016 Public folder
    • Exchange 2013 Public folder to Office 365
    • Exchange 2016 Public folder to Office 365
    • Exchange Public Folder to Shared Mailbox
    • Archive Mailbox to Office 365
    • Archive Mailbox to Exchange
    • Hosted Exchange Migration
    • Hosted Exchange to Live Exchange Migration
    • Hosted Exchange to Office 365 Migration
    • Live Exchange to Hosted Exchange Migration
    • Hosted Exchange Public Folder to Office 365 Migration
    • Cross-forest migration from Exchange 2013 to Exchange 2019/2016
    • Hybrid Migration
    • Public folder Migration in Hybrid Environment
    • Migrate GAL and all address list
    • Disable msExchMailboxGuid
    • Exchange to Gmail Migration
    • Multiple PST files to Exchange server
  • Connect to Exchange server for multiple mailboxes migration
    • Connect with Global Admin
    • Connect to Multiple users using CSV file
    • Connect using full access permission
    • Connect individual users for Single / Specific user Migration
  • Connect to Hosted Exchange for its Migration
    • Connect with Full Access permissions
    • Connect to multiple users using CSV file
    • Connect to Individual user for migration
  • Connect to Office 365
    • Modern Authentication Using OAuth 2.0
      • Microsoft 365 modern authentication
      • Automatic Registration
      • Manual Registration
    • Connect with Global Admin
    • Connect to Office 365 with full access permission
    • Connect to Office 365 with CSV file option
    • Connect to Office 365 as single user mailbox
  • Set Exchange Server Impersonation rights
    • Exchange 2007 and below
    • Exchange 2010, 2013, 2016 and 2019
    • Set using Exchange Server GUI
  • Knowledge Base
    • Exchange to Exchange Migration
    • Exchange to Office 365 Migration
    • Migrate Legacy Exchange to Latest Exchange
    • Cross-forest and cross-domain migration
    • Public folder, Shared mailbox migration
    • Archive mailbox migration
    • Hosted Exchange Migration
    • Incremental migration
    • Cutover, staged and hybrid migration
    • Migrate SBS 2003, 2008, 2011 to a Modern Exchange Environment
    • Export Exchange Mailbox to PST
    • Secure Exchange Migration
    • Selective Mailbox / Folder Migration
    • Automatic Mailbox Mapping
    • Assign Public Folder to one target destination
    • Multiple PST Restore
    • No Impact on users - Zero downtime
    • Migrate Email Rules, Forwarding and Junk Email Configuration
    • Exchange migration speed and throttling management
    • Support for all the languages
    • Advanced settings and options
    • GAL and all address lists Migration
    • Exchange migration reports
    • Best Exchange Migration software
    • Exchange migration checklist
    • Exchange migration manager
    • Feature rich Exchange migration software
    • Exchange to Office 365 migration planning
    • Exchange server migration tips
    • Export Exchange server users to CSV
  • Understanding the Application
    • Program's Component
    • Migration
    • Incremental Migration
    • Exchange Throttling Policy
  • Migration Types
    • Cutover Migration
    • Staged Migration
    • Hybrid Migration
  • Map the Mailboxes
  • Migration Walkthrough
    • From Exchange 2003
    • From Exchange 2007
    • From Exchange 2010 to Exchange 2019
    • From Exchange 2010 to Exchange 2016
    • From Exchange 2010 to Office 365
    • From Exchange 2013 to Exchange 2019
    • From Exchange 2013 to Exchange 2016
    • From Exchange 2013 to Office 365
    • From Exchange 2016 to Exchange 2019
    • From Exchange 2016 to Office 365
    • From Exchange 2019 to Office 365
    • From Office 365
    • Exchange 2013 mailbox to PST
    • Exchange 2016 mailbox to PST
    • Exchange 2019 mailbox to PST
    • Exchange 2010 mailbox to PST
  • Multifactor Authentication
    • Enable MFA in Office 365
    • Create App password for MFA
    • Disable Security Defaults
  1. Home
  2. Product
  3. Configure AD sync tools for hybrid Exchange migration
Download Buy Now

Prerequisites for migration in an exchange and Office 365 hybrid environment

In a hybrid Exchange environment, such as Exchange to Exchange or Exchange to Office 365, having coexisting mailboxes for the same user can create challenges when distinguishing between the source and target mailboxes during migration. If you're using an AD synchronization tool like Azure Active Directory Connect or Azure AD Sync to synchronize data within your hybrid Exchange setup, it's essential to configure specific attributes to streamline the migration operation.

Below are the prerequisites for managing migrations using EdbMails in a hybrid Exchange environment. These prerequisites are primarily met through the configuration of specific attributes in the hybrid setup.

Once you have implemented one of the solutions outlined below, you can proceed with the migration operation using EdbMails.

  1. Set the attribute msExchMailboxGuid to NULL

    1. Use the following cmdlet to stop the scheduler in Azure AD Connect.

      Set-ADSyncScheduler -SyncCycleEnabled $false

    2. Run the ‘Synchronization Rules Editor’ tool from the ‘Start’ menu and ‘run as administrator’ as shown.

      Synchronization Rules Editor

    3. Select the option ‘Inbound’ under ‘Direction’ drop-down menu (or from the ‘Rule Types’ menu, in the case you are using ‘Azure AD sync’)
    4. Select the rule ‘In from AD - User Exchange’ and click ‘Edit’ . Note down the ‘Precedence’ value. In the below screenshot it is ‘113’. This value needs to be used in the next step.

      Synchronization Rules Editor

    5. Click ‘Yes’ to disable the rule and create a copy of the rule.
    6. Under 'Descriptions', change the value of the Precedence to '200'.
    7. In the ‘Transformations’ tab look for the attribute ‘msExchMailboxGuid’ and set the following values.
      • Under 'Flow Type'->Select 'Expression'
      • Under 'Source', corresponding to this row-> Select 'NULL'
      • Select the checkbox 'Apply Once'
      • Under 'Merge Type'->Select 'Update'.

        Edit Inbound Synchronization Rules

      • Click 'Save' after configuring the above changes
    8. Delete the original rule that you have disabled in Step 5
    9. Change the Precedence value of the newly created rule (the copy that you have created in Step 5) to the value used in the original rule. It was ‘113’.
    10. Execute the below command to restart the scheduler you had turned off in Step 1.

      Set-ADSyncScheduler -SyncCycleEnabled $true

    11. Execute the below command to perform a full synchronization.

      Start-ADSyncSyncCycle -PolicyType Initial

      After performing the synchronization, you can perform migration within your hybrid environment by creating mailboxes and assigning licenses to your Office 365 account.

      If the license has been previously allocated, but the user doesn't have a mailbox, revoke the license and then reassign it

      It's important to note that once the mailboxes have undergone migration, Office 365 users will remain synchronized with your on-premises AD environment.

      Consequently, you should handle Office 365 mailboxes, such as altering their email addresses, through your on-premises Exchange server.

      If you decide to remove the mailboxes from your on-premises organization or decommission the on-premises server, making changes to or deleting their cloud equivalents in Office 365 won't be possible unless you disable directory synchronization.

  2. Remove the attribute msExchMailboxGuid from the AD synchronization

    We highly recommend opting for the first solution 'Solution I' as it's simpler to implement and requires less of your time. However, if this option isn't viable or if the initial solution doesn't yield the desired results in your specific environment, you can then consider proceeding with this alternative approach.

    If the synchronization process has been completed, and the synchronized users already have values assigned to the msExchMailboxGuid attribute in Office 365, you may explore another avenue. This involves permanently removing (hard-deleting) all of the synchronized users from Office 365, reconfiguring the synchronization process to exclude the msExchMailboxGuid attribute, and then performing the synchronization again. Navigate through the links below for the details.

    If the aforementioned solution is not working for you, you can try removing the synced users manually from Office 365 or remove the attribute msExchMailboxGuid to remove the synced users in Office 365.

    • Remove synced users from Office 365
    • Configure or Reconfigure AD synchronization tools to migrate to Office 365

    Remove Synced users from Office 365

    1. Open 'Synchronization Service Manager' in 'Azure AD Connect'.
    2. Select the 'Connectors' tab.
    3. Select 'Active Directory Domain Services' as the connection type.
    4. Right click and select 'Properties'
    5. From the 'Properties' window, head over to the 'Configure Directory Partitions' and click on 'Containers'.
    6. Enter the password of the local AD user and click 'OK'.
    7. In the 'Select Containers' window, uncheck the selection for HybridUsers and click 'OK'.
    8. To do a full AD synchronization, open Windows PowerShell command and execute the command below.

      Start-ADSyncSyncCycle -PolicyType Initial

    9. Open 'Synchronization Service Manager' and verify if the status of the connectors are successful. You can view the synced accounts under the Deleted 'Users' page of the Office 365 admin center. Finally, you can delete the users from the Azure AD admin center.

      Synchronization Service Manager

    10. After deleting the users from the Azure AD admin center there will be no synchronized accounts which you can verify from the Office 365 admin center. If you would like to know how to delete the users from Azure AD, follow the steps below.
    • Hard-deleting user mailboxes with the Exchange Online module

      Note: To connect to Office 365 as part of the Windows Azure service, you must install the required module for Windows PowerShell.
      Run the below command to connect to your Office 365 server using global admin account:

      $cred = Get-Credential

      Connect-MsolService -Credential $cred

      Now, either permanently delete all recently deleted users at once or proceed with individual removals
      Execute this command to delete all user mailboxes in the batches,

      get-msoluser -returndeletedusers -All | remove-msoluser -removefromrecyclebin -force

      Caution: The execution of this cmdlet may require some time to finish, and the duration can vary depending on the quantity of mailboxes for deletion. While it's processing, you might notice PowerShell appearing unresponsive If you want to delete user mailboxes one by one, execute the below command to get the list of deleted users:

      Get-MsolUser -ReturnDeletedUsers | Select UserPrincipalName, ObjectId

      This will provide you with the User Principal Name (UPN) and the ObjectId parameter for these users. To delete a specific user, run the following cmdlet while supplying the correct <ObjectId> value:

      Remove-MsolUser -RemoveFromRecycleBin -ObjectId <ObjectId>

    Hard Deletion of user mailboxes using Microsoft Entra admin center

    1. Login to Microsoft Entra Admin Center from this link.
    2. Select Users from the left pane and navigate to Deleted users.

      Navigate to deleted user

    3. Select the users you want to delete and click the button Delete permanently to permanently delete all the users. Click the ‘OK’ Button

      Click delete permanently

    Note :

    All your user mailboxes that have been soft-deleted will be automatically and permanently removed after a span of 30 days. In the event that these mailboxes were under litigation hold, they will only be permanently deleted once the hold has been lifted, although this action will occur no sooner than 30 days after the initial soft deletion.

    Upon successfully executing all the aforementioned procedures, there should be no synchronized accounts remaining in your Office 365 environment, and you can confirm this status through the Microsoft 365 admin center.

    Configure or Reconfigure AD synchronization tools to migrate to Office 365

    You can prevent the attribute msExchMailboxGuid from syncing every time by following the steps below.

    1. Open Azure AD Connect app.
    2. Click on Configure and choose Custom synchronization options from the list. Click Next.
    3. Enter your Azure credentials under Connect to Azure AD.
    4. In the Domain / OU Filtering tab select the option HybridUsers and click on the Next button at the bottom.

      Select hybrid users

    5. In the ‘Azure AD Attributes’ tab, uncheck the option ‘msExchMailboxGuid’ and check the option ‘I want to further limit the attributes exported to Azure AD’ and click on the ‘Next’ button.

      uncheck msExchMailboxGuid

    6. In the ‘Configure’ tab, check the option ‘Start the synchronization process when configuration completes’.
    7. Click on the ‘Configure’ button to initiate the full synchronization. After the synchronization is complete, the attribute ‘msExchMailboxGuid’ is no longer synced to the user accounts.

 Click here for the steps to migrate mailbox data from on-premise Exchange server to Office 365 using EdbMails.

Download
Buy Now

 In this manual

Set the attributeRemove the attribute

Live Exchange Migration

100 Mailboxes $299 Only

Buy Now

Need help?

24/7 Customer support

Contact us on Live chat

Personalized Demo

Book a personalized demo

Still need help?

Email us / Call us

@edbmails.com All rights are reserved Privacy Policy | Terms of Use | GDPR | Security | Press Releases

hidden msg
Live Chat

Hi, May I help you?

Hide Chat Now