1. Open Powershell as an administrator and run the following commands:

  2. Set-ADSyncScheduler -SyncCycleEnabled $false

  3. Install-Module Microsoft.Graph -Force

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

  5. Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled

  6. $OrgID = (Get-MgOrganization).Id

  7. $params = @{ onPremisesSyncEnabled = $false }

  8. Update-MgOrganization -OrganizationId $OrgID -BodyParameter $params

  9. Verify sync is disabled:

  10. Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled

  11. Uninstall Entra Connect Software.