Friday, March 21, 2025

How to uninstall Entra AAD Sync (and disable it/convert all users to cloud only)

How to disable Active Directory synchronization in Microsoft Entra ID

Step 1. Install the Microsoft Graph PowerShell module

Install-Module Microsoft.Graph -Force

Step 2. Connect to Microsoft Graph

Connect-MgGraph -Scopes "Organization.ReadWrite.All"

Step 3. Check on-premise sync status

Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled
DisplayName OnPremisesSyncEnabled
----------- ---------------------
EXOIP                        True

Step 4. Disable on-premise directory synchronization

$OrgID = (Get-MgOrganization).Id

$params = @{
    onPremisesSyncEnabled = $false
}

Update-MgOrganization -OrganizationId $OrgID -BodyParameter $params

Step 5. Verify on-premise sync status - It should be empty.

Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled
DisplayName OnPremisesSyncEnabled
----------- ---------------------
EXOIP


The Sync status should have a picture of a cloud-



Step 6. Uninstall Entra AD Sync




No comments:

Post a Comment