Windows
Open Powershell as an administrator and run the following commands:
Set-ADSyncScheduler -SyncCycleEnabled $false
Install-Module Microsoft.Graph -Force
Connect-MgGraph -Scopes "Organization.ReadWrite.All"
Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled
$OrgID = (Get-MgOrganization).Id
$params = @{ onPremisesSyncEnabled = $false }
Update-MgOrganization -OrganizationId $OrgID -BodyParameter $params
Verify sync is disabled:
Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled
Uninstall Entra Connect Software.