Hello,
I recently tested Asure AD Connect with my local test AD and it worked fine.
I removed the service after testing an now want to install it in my production AD.
The problem is I cannot install the Connect App, it always fails with this log entry:
[20:28:29.750] [ 1] [INFO ] MicrosoftOnlinePersistedStateProvider.Save: saving the persisted state file
[20:28:29.750] [ 1] [INFO ] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection: updating file protection from the persisted state file: C:\ProgramData\AADConnect\PersistedState.xml, isAddProtection: False
[20:28:29.752] [ 1] [INFO ] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection: updating file protection from the persisted state file: C:\ProgramData\AADConnect\PersistedState.xml, isAddProtection: True
[20:28:29.753] [ 1] [INFO ] PersistAzureAffinity: Azure affinity was previously persisted as Worldwide (0).
[20:28:29.753] [ 1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.ExecuteADSyncConfiguration in Page:"Die Konfiguration wird
ausgeführt"
[20:28:29.753] [ 1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:1229742
[20:28:29.753] [ 12] [INFO ] PerformConfigurationPageViewModel.ExecuteADSyncConfiguration: Preparing to configure sync engine (WizardMode=ExpressInstall).
[20:28:29.753] [ 12] [INFO ] PerformConfigurationPageViewModel.ExecuteSyncEngineInstallCore: Preparing to install sync engine (WizardMode=ExpressInstall).
[20:28:29.753] [ 12] [INFO ] Starting Sync Engine installation
[20:28:29.799] [ 12] [INFO ] IsManagedServiceAccountSupported: OS > W2008R2
[20:28:29.799] [ 12] [INFO ] IsManagedServiceAccountSupported: True
[20:28:29.806] [ 12] [INFO ] ServiceControllerProvider: service ADSync exists
[20:28:29.806] [ 12] [INFO ] ServiceControllerProvider: processing StopService request for: ADSync
[20:28:29.806] [ 12] [VERB ] ServiceControllerProvider:
Initial service status: Stopped
[20:28:29.806] [ 12] [INFO ] ServiceControllerProvider: StopService status: Stopped
[20:28:29.806] [ 12] [INFO ] ServiceControllerProvider:DeleteService - serviceName:ADSync
[20:28:39.809] [ 12] [INFO ] ServiceControllerProvider: service ADSync exists
[20:28:39.809] [ 12] [INFO ] ServiceControllerProvider:DeleteService still pending - serviceName:ADSync
[20:28:44.810] [ 12] [INFO ] ServiceControllerProvider: service ADSync exists
[20:28:44.810] [ 12] [INFO ] ServiceControllerProvider:DeleteService still pending - serviceName:ADSync
[20:28:49.811] [ 12] [INFO ] ServiceControllerProvider: service ADSync exists
[20:28:49.811] [ 12] [INFO ] ServiceControllerProvider:DeleteService still pending - serviceName:ADSync
[20:28:49.811] [ 12] [ERROR] ServiceControllerProvider:DeleteService failed - serviceName:ADSync
[20:28:49.811] [ 12] [INFO ] ServiceControllerProvider:CreateService - serviceName:ADSync, username:NT SERVICE\ADSync, assemblyPath:C:\Program Files\Microsoft Azure Active Directory Connect\ADSyncBootstrap.exe
[20:28:49.814] [ 12] [ERROR] ServiceControllerProvider:CreateService - Caught unexpected exception. Details System.ComponentModel.Win32Exception (0x80004005): Der angegebene Dienst wurde zum Löschen markiert
bei System.ServiceProcess.ServiceInstaller.Install(IDictionary stateSaver)
bei Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.CreateService(String serviceName, String serviceDescription, String username, String password, String assemblyPath)
[20:28:52.114] [ 12] [ERROR] PerformConfigurationPageViewModel: Caught exception while installing synchronization service.
Exception Data (Raw): System.Exception: Synchronization Service kann nicht installiert werden. Weitere Einzelheiten finden Sie im Ereignisprotokoll. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Microsoft.Azure.ActiveDirectory.Synchronization.Framework.AccountManagementAdapter.RemoveMembersFromLocalGroup(SecurityIdentifier groupSid, DirectoryEntry[] members)
bei Microsoft.Azure.ActiveDirectory.Synchronization.Framework.SyncServiceAccount.<>c__DisplayClass53_0.<RemoveFromLocalAdministratorsGroup>b__0()
bei Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.Execute(Action action, String description)
bei Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SynchronizationServiceSetupTask.InstallCore(String logFilePath, String logFileSuffix)
bei Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.ExecuteWithSetupResultsStatus(SetupAction action, String description, String logFileName, String logFileSuffix)
bei Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()
--- Ende der internen Ausnahmestapelüberwachung ---
bei Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.ThrowSetupTaskFailureException(String exceptionFormatString, String taskName, Exception innerException)
bei Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()
bei Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.InstallSyncEngineStage.ExecuteInstallCore(ISyncEngineInstallContext syncEngineInstallContext, ProgressChangedEventHandler progressChangesEventHandler)
bei Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.InstallSyncEngineStage.ExecuteInstall(ISyncEngineInstallContext syncEngineInstallContext, ProgressChangedEventHandler progressChangesEventHandler)
bei Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.ExecuteSyncEngineInstallCore(AADConnectResult& result)
[20:29:19.676] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20181127-172606.log
[20:33:57.197] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20181127-172606.log
I guess there is something wrong because I had a Sync working before - but with another AD ?
I removed everything from Azure AD before I tried to sync the new local AD. At least everything that I could find.
How can I resolve this issue?
Thanks a lot.