Cannot enable Dir Sync

FDS Support 1 Reputation point
2020-05-20T16:05:43.943+00:00

Hi

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

Confirm
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
False

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

DirectorySynchronizationStatus

           PendingDisabled

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

Piwat

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,164 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 108.2K Reputation points MVP
    2020-06-05T06:51:51.457+00:00
    0 comments No comments

  2. AmanpreetSingh-MSFT 56,661 Reputation points
    2020-06-05T07:17:56.657+00:00

    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:
      (Get-MSOLCompanyInformation).objectID
    • Service instance: To collect the service instance, type the following cmdlet, and then press Enter:
      (Get-MSOLCompanyInformation).AuthorizedServiceInstances

    -----------------------------------------------------------------------------------------------------------

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.