To turn off directory synchronization (also called Azure AD sync, AAD sync or Entra Connect sync), connect to Microsoft Graph PowerShell and set onPremisesSyncEnabled to false for your tenant. Synchronized users and groups then become cloud-only. This guide gives the commands, the checks to run first and what happens afterwards.
Before you disable Azure AD sync
This is a tenant-wide change. Microsoft does not recommend turning off directory synchronization as a troubleshooting step, and after you turn it off you must wait 72 hours before you can turn it on again.
- Be sure you want it off. If you only need to stop sync for a short time, pause the scheduler instead (see below).
- Check how users sign in. If you use pass-through authentication or federation, move users to a cloud sign-in method and plan password resets first.
- Export a record. Save a list of users, groups and key on-premises attributes. Several on-premises properties are cleared in the cloud.
- Confirm admin access. Make sure you have a working cloud-only administrator account with multi-factor authentication.
- Check dependencies. Review anything that relies on on-premises attributes, including Exchange hybrid settings.
Option: pause Entra Connect sync temporarily
On the server that runs Microsoft Entra Connect Sync, you can stop scheduled sync cycles without changing the tenant setting:
Set-ADSyncScheduler -SyncCycleEnabled $false
Run the same command with $true to resume.
Requirements to turn off directory synchronization
- A Hybrid Identity Administrator account (the role Microsoft names for this task). An administrator may also need to consent to the Graph permissions.
- The Microsoft Graph PowerShell module.
- The permission scopes
Organization.ReadWrite.AllandDirectory.ReadWrite.All.
The older MSOnline module has been retired, so guides that use Set-MsolDirSyncEnabled are out of date.
Step 1: Uninstall the sync client
If the change is permanent, uninstall Microsoft Entra Connect Sync or Cloud Sync first. On a Connect Sync server, use Apps or Programs and Features. Microsoft notes that if you disable sync before uninstalling the client, the portal can show confusing status for optional features such as password hash synchronization.
Step 2: Install Microsoft Graph PowerShell
Install-Module Microsoft.Graph -Force
Step 3: Connect to Microsoft Graph
Connect-MgGraph -Scopes "Organization.ReadWrite.All,Directory.ReadWrite.All"
Step 4: Check the current sync status
Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled
A value of True means directory synchronization is on for the tenant. Check the display name to confirm you are connected to the right tenant.
Step 5: Disable directory synchronization with PowerShell
$organizationId = (Get-MgOrganization).Id
$params = @{
onPremisesSyncEnabled = $false
}
Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params
Step 6: Verify the change
Get-MgOrganization | Select-Object DisplayName, OnPremisesSyncEnabled
The flag should no longer read True. Converting objects to cloud-only can take up to 72 hours, depending on the size of the directory, so check again before you treat the work as finished.
What changes after you turn off sync
| Area | What to expect |
|---|---|
| Users and groups | Synchronized objects become cloud-only and are managed in Microsoft 365 or Entra ID |
| On-premises attributes | Properties such as DnsDomainName, NetBiosName and the on-premises distinguished name, SAM account name and user principal name are cleared |
| Changes in local Active Directory | They no longer flow to the cloud |
| Passwords | Local password changes stop syncing, so tell users where to change passwords from now on |
| Turning sync back on | Not possible for 72 hours, and it needs a planned setup with a sync client |
Checks after the conversion
- Test sign-in for a few users, including one administrator.
- Confirm licences, group memberships and mailbox access.
- Review local users and administrators on Intune-managed devices if devices depended on local directory groups.
- Update your user setup and exit process, using our IT onboarding and offboarding checklist.
- Review sign-in protection with our Microsoft 365 security checklist.
Disable sync, pause it or remove Entra Connect: which do you need?
Searches for how to stop Azure AD sync often mean different things. Pick the option that matches your goal before running anything.
| Goal | Option | Effect |
|---|---|---|
| Hold changes for a short maintenance window | Disable the sync scheduler | The tenant stays hybrid; scheduled cycles stop until you resume |
| Stop a cycle that is running now | Stop the current cycle | The scheduler stays active and runs again later |
| Retire the sync server permanently | Uninstall the client, then turn off directory synchronization | Synced accounts become cloud-only |
| Fix sync errors | Troubleshoot instead of disabling | No tenant-wide change |
Check the Entra Connect scheduler first
On the sync server, open PowerShell as an administrator and view the current configuration:
Import-Module ADSync
Get-ADSyncScheduler
Useful values in the output include:
- SyncCycleEnabled: whether scheduled import, sync and export run.
- CurrentlyEffectiveSyncCycleInterval: how often cycles run. The default is every 30 minutes.
- NextSyncCycleStartTimeInUTC: when the next cycle will start.
- StagingModeEnabled: whether the server is in staging mode, where exports are suppressed.
If you have more than one sync server, check each one, including any staging server, so you know which is exporting changes.
Stop a running sync cycle
Stop-ADSyncSyncCycle
This ends the current cycle only. Pending changes are processed on the next run. To keep the scheduler from starting again, use the pause command shown earlier, and close the Entra Connect setup wizard when you finish because leaving it open also suspends the scheduler.
Run one last sync before you switch off
Before a planned cutover, export recent on-premises changes so cloud accounts are up to date:
Start-ADSyncSyncCycle -PolicyType Delta
Wait for the cycle to finish and review it for errors in Synchronization Service. Resolve anything that affects users you care about before you continue. A full cycle, using Initial, can take much longer and is normally needed only after configuration changes.
What to export before turning off directory synchronization
A record taken beforehand makes it far easier to spot problems afterwards. Connect with read permissions and export your users:
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -All -Property DisplayName,UserPrincipalName,OnPremisesSyncEnabled,OnPremisesSamAccountName,OnPremisesDistinguishedName |
Select-Object DisplayName,UserPrincipalName,OnPremisesSyncEnabled,OnPremisesSamAccountName,OnPremisesDistinguishedName |
Export-Csv .\users-before-cutover.csv -NoTypeInformation
Also record group memberships, shared mailboxes, mail aliases and any application that reads on-premises attributes. Store the files securely because they contain personal information.
Plan passwords and sign-in
- Decide where users will change and reset passwords after the cutover.
- Register multi-factor authentication and recovery methods ahead of time.
- Prepare the help desk for sign-in questions in the first few days.
- Keep at least one tested cloud-only emergency administrator account.
- Plan how computers joined to the local domain will be handled, since turning off sync does not move devices for you.
Troubleshooting the PowerShell commands
The ADSync cmdlet is not recognized
Run Import-Module ADSync on the server that has Entra Connect Sync installed. These cmdlets are not part of Microsoft Graph PowerShell.
Insufficient privileges
Confirm the signed-in account holds the required role and that the requested Graph scopes were consented. Disconnect with Disconnect-MgGraph and connect again after changing permissions.
The status has not changed for some users
Conversion takes time. Check the tenant flag first, then review individual accounts again later. If problems remain after 72 hours, open a support case with Microsoft.
You are connected to the wrong tenant
Run Get-MgContext and confirm the account and tenant ID before running any update command.
Cutover checklist
- Written approval and a communication to staff
- Exports saved and checked
- Final delta sync completed without relevant errors
- Sync client uninstalled
- Tenant flag set to false and verified
- Sign-in, mail, licences and groups tested
- Documentation and offboarding steps updated
- A follow-up check booked after 72 hours
How long to allow and who to tell
The update command is quick, but the work around it is not. Choose a low-traffic window, name one person who makes the go or no-go decision and tell the help desk exactly when the change will happen. Send staff a short notice that explains what will look different, where to reset a password and whom to contact if sign-in fails.
- One week before: confirm approval, review dependencies and test the emergency administrator account.
- The day before: take fresh exports and check that recent sync cycles completed.
- On the day: freeze user and group changes in local Active Directory, run the final sync, uninstall the client and change the tenant flag.
- The following three days: monitor sign-in problems, compare accounts with your export and avoid further identity changes you do not need.
Because directory synchronization cannot be turned back on for 72 hours, do not schedule the change just before a payroll run, a migration, an audit or a long weekend. If you are unsure whether anything still depends on the local directory, pause and investigate first. A delayed cutover is much easier to manage than a rushed one.
Frequently asked questions
How long does it take to disable Entra ID directory sync?
The command runs in seconds, but the conversion can take up to 72 hours.
Does uninstalling Azure AD Connect turn off sync?
It stops the server from syncing, but the tenant flag stays on until you change it. Check OnPremisesSyncEnabled.
Will users be deleted?
Turning off synchronization converts synchronized users to cloud-only accounts. Still, export your directory first so you can compare before and after.
What PowerShell command disables Azure AD sync?
Use Update-MgOrganization with onPremisesSyncEnabled set to false for the tenant. To pause only the server schedule, use Set-ADSyncScheduler -SyncCycleEnabled $false.
How often does Entra Connect sync run?
Every 30 minutes by default.
Is Set-MsolDirSyncEnabled still the right command?
No. It belongs to the retired MSOnline module. Use Microsoft Graph PowerShell.
If you would like help planning a move to cloud-only identities, our managed IT services team can do it with you. Request a quote.
Source: Microsoft Learn, Turn off directory synchronization for Microsoft 365. Checked November 2026.