question

FDSSupport-4661 avatar image
0 Votes"
FDSSupport-4661 asked ·

Cannot enable Dir Sync

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

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered ·
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

Hi @FDSSupport-4661

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.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.