Start and End user sync with Exchange Online

Susan Dodds 441 Reputation points
2026-01-15T20:23:03.9833333+00:00

I have an on-premise Exchange 2019 Cu14 server I want to move to 365.

I also plan to sever cloud sync and manage on/off premise separately.

Do I need to do anything in exchange online before/after the hybrid configuration wizard or does the hybrid configuration wizard do all of the work to get things started?

The migrated users will all be new users in 365.

Regarding ending cloud sync, I see that I should use a powershell prompt to terminate cloud sync. Do I do this within 365 (I need information on how to get to and use 365 powershell) or on my 2019 server? Sorry if this is a dumb question but I think I've seen references to 365 powershell so I want to make sure.

Or do I run the powershell on the server with Entra connect?


Set-MsolDirSyncEnabled -EnableDirSync $false
Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Kha-N 8,265 Reputation points Microsoft External Staff Moderator
    2026-01-16T01:34:27.7866667+00:00

    Hi @SusanDodds,

    Welcome to Microsoft Q&A, and thank very much for reaching out to us.

    Based on your description, aside from the information already shared by Q&A Assist, I’d like to add a bit more insight from my research.

    Regarding whether anything needs to be configured on the Exchange Online side before running the Hybrid Configuration Wizard, as I checked, there is generally no additional preparation required. However, it’s important to ensure that directory synchronization (Azure AD Connect) is already in place and healthy before running the HCW, as the wizard validates directory sync and performs configuration on both the on‑premises Exchange environment and Exchange Online.

    For more details, you can check this Microsoft documentation on Hybrid Configuration wizard here.

    User's image

    In addition, please make sure your Exchange Server meets the required prerequisites outlined in the Microsoft documentation on Hybrid deployment prerequisites before proceeding with the migration.

    As for ending cloud synchronization, may I confirm that your goal is to turn off directory synchronization so that on‑premises users become cloud‑only? If so, this action is performed at the Microsoft 365 / Entra ID tenant level. You would run the command in your Microsoft 365 environment using Microsoft Graph PowerShell SDK: the current supported PowerShell module built on Microsoft Graph API, rather than from the Exchange server itself.

    For more information, you can check Microsoft documentation on disabling directory synchronization here.

    I also recommend reviewing the common issues and troubleshooting guidance for disabling directory synchronization outlined in this Microsoft’s documentation, as this can help you avoid known pitfalls during the process.

    I hope this helps.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. AI answer

    2026-01-15T20:23:15.8966667+00:00

    To move from an on-premise Exchange 2019 server to Exchange Online, the Hybrid Configuration Wizard (HCW) will help set up the hybrid environment, but there are a few steps you need to consider before and after running the HCW:

    1. Before Running HCW: Ensure that you have prepared your environment according to the requirements for hybrid deployments. This includes ensuring that your DNS records are correctly set up and that you have the necessary permissions.
    2. After Running HCW: The HCW will configure the necessary connectors and settings for hybrid operation. However, you will need to manage user accounts in Exchange Online after migration. Since you plan to sever cloud sync, you will need to disable directory synchronization after the migration.
    3. Disabling Cloud Sync: The command you mentioned, Set-MsolDirSyncEnabled -EnableDirSync $false, is used to disable directory synchronization. This command should be run in the Microsoft 365 PowerShell environment, not on your on-premise server. You can access Microsoft 365 PowerShell by connecting to it using the following steps:
      • Open PowerShell as an administrator.
      • Install the MSOnline module if you haven't already by running Install-Module MSOnline.
      • Connect to your Microsoft 365 tenant using Connect-MsolService and provide your admin credentials.
      • After connecting, you can run the command to disable directory sync.
    4. Using Entra Connect: If you are using Microsoft Entra Connect, you typically manage directory synchronization settings through the Entra Connect tool itself. However, the command to disable sync is specifically for Microsoft 365 PowerShell.

    Make sure to follow the proper sequence of steps to ensure a smooth transition to Exchange Online and to manage your users effectively post-migration.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.