Open a support case or call support directly: https://learn.microsoft.com/en-us/microsoft-365/admin/contact-support-for-business-products?&tabs=phone
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
2 answers
Sort by: Most helpful
-
-
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.