How to Disable On-Prem Directory Sync to Microsoft Entra ID 🌐 | Step-by-Step Guide

Опубликовано: 08 Июль 2026
на канале: H355
1,320
15

🎉 Hello Everyone! 🎉

In this video, I'll be guiding you step-by-step on how to disable your on-premises directory synchronization 🌐👋. If your company is moving to the cloud ☁️ and you’re no longer syncing from your on-prem Active Directory to Microsoft Entra ID, this video is just for you! 🌟

We will disable/disable Azure Active Directory Connect. This is the same as Disable/Disable Entra Active Directory Connect.

All the commands will be in the description below 👇, so you can easily follow along. When we're done, all your Entra objects will be cloud-managed 🌐🎯.

👨‍🏫 Commands We'll Cover:
1️⃣ Import-Module ADSync
2️⃣ Set-ADSyncScheduler -SyncCycleEnabled $false
3️⃣ Get-ADSyncScheduler | ft SyncCycleEnabled
4️⃣ Install-Module Microsoft.Graph -Force
5️⃣ Connect-MgGraph -Scopes "Organization.ReadWrite.All"
6️⃣ $OrgID = (Get-MgOrganization).Id

$params = @{
onPremisesSyncEnabled = $false
}

Update-MgBetaOrganization -OrganizationId $OrgID -BodyParameter $params
7️⃣ Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled

If this video helped, don’t forget to LIKE 👍, COMMENT 💬, and SUBSCRIBE 🔔! Thanks for watching, and let’s keep your IT environment clean and cloud-ready! 🚀🌟

📌 Timestamps:
0:00 Intro
0:42 Start disable Entra AD Connect / Azure AD Connect
1:50 Tell Entra that we no longer want to Sync a local Domain
3:14 Outro

#h355