Cannot enable Dir Sync

FDS Support 1 Reputation point


it won't let me enable DirSync. I'm using the same in-cloud global admin account as before, and I'm using the Azure Active Directory Module for Windows Powershell console and I get the return I've pasted below.

PS C:\Windows\system32> Set-MsolDirSyncEnabled -EnableDirSync $True

Continue with this operation?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Set-MsolDirSyncEnabled : You cannot turn off Active Directory synchronization.
At line:1 char:1

  • Set-MsolDirSyncEnabled -EnableDirSync $True
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OperationStopped: (:) [Set-MsolDirSyncEnabled], MicrosoftOnlineException
  • FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.DirSyncStatusChangeNotAllowedException,Microsoft.Online.Administration.Automation.SetDirSyncEnabled

PS C:\Windows\system32> (Get-MSOLCompanyInformation).DirectorySynchronizationEnabled

PS C:\Windows\system32> MSOLCompanyInformation | select DirectorySynchronizationStatus



I am waiting more than 72 hours to try re-enable.
Any ideas?


Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,747 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 71,216 Reputation points MVP
    0 comments No comments

  2. AmanpreetSingh-MSFT 55,541 Reputation points

    Hi @FDS Support

    As directory synchronization isn't activated or deactivated after 72 hrs, follow these steps, and then contact Microsoft Support:

    Run below PowerShell cmdlets:

    • Connect-MSOLService
    • (Get-MSOLCompanyInformation).DirectorySynchronizationStatus

    If the output is "PendingEnabled" or "PendingDisabled" after the expected enablement time period has passed, this is a known issue with Exchange Online.
    Collect the following information from the Windows PowerShell connection:

    • Context ID: To collect the context ID, type the following cmdlet, and then press Enter:
    • Service instance: To collect the service instance, type the following cmdlet, and then press Enter:


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments