问题描述
Azure AD Connect幸福地运行然后停止.即使重新启动,Microsoft Azure AD Connect服务也不会启动.手动启动miiserver.exe或任何它称为的文件都会丢失文件.
Had Azure AD Connect happily running then stopped. Microsoft Azure AD Connect service would not start even after a reboot. Manually starting the miiserver.exe or whatever it is called would claim missing files..
好的,所以我要先进行修复".通过Azure AD Connect安装程序出现问题在计算机上找不到Service ADSync".
OK so I go to first "repair" via the Azure AD Connect installer with the issue "Service ADSync was not found on computer".
因此,我然后卸载了包括数据库组件在内的所有内容,然后尝试重新安装.再次安装时,系统提示我在计算机上未找到Service ADSync".
So then I uninstall including the database components, everything, and try reinstall. On installing again I am prompted with "Service ADSync was not found on computer".
我发现这些步骤可以正常工作:
I found these steps that are meant to work:
https://social.msdn.microsoft.com/Forums/zh-CN/1e3b64ae-dccc-415d-9cc9-36c3ff17c0f8/uninstall-windows-azure-ad-connect-108641?forum=WindowsAzureAD
https://social.msdn.microsoft.com/Forums/en-US/1e3b64ae-dccc-415d-9cc9-36c3ff17c0f8/uninstall-windows-azure-ad-connect-108641?forum=WindowsAzureAD
1.删除由目录同步工具创建的本地服务帐户,其用户名以AAD_……开头.
2.删除由以FIM开头的dirsync工具创建的本地用户组……
3.删除目录C:\ Program Files \ Windows Azure Active Directory同步
4.删除位于C:\ Program Files \ Microsoft SQL Server \ MSSQL11.MSONLINE \ MSSQL \ DATA
1.Remove the local service account created by dirsync tool, with username starting with AAD_…….
2. Delete the local user groups created by dirsync tool that starts with FIM……
3. Remove the directory C:\Program Files\Windows Azure Active Directory Sync
4. Delete dirsync database files located at C:\Program Files\Microsoft SQL Server\MSSQL11.MSONLINE\MSSQL\DATA
但这是行不通的.
1.没有本地服务帐户(在服务器上的本地用户和组中或在AD中,现在没有用户为AAD ...)
1. There is no local service account present (in the local Users and Groups on the server or in AD there is no user now as AAD...)
2.除了默认值外,没有其他本地组.
2. There are no local groups apart from the defaults.
3.显然是不同的名称,但已删除了程序文件(如Microsoft Azure Active Directory Connect)下的所有文件夹.
3. Obviously different named but have removed all folders under Program Files like Microsoft Azure Active Directory Connect.
4.文件不存在.没有要删除的数据库.
4. Files don't exist. No Databases to remove.
这是日志文件:
[ 10:57:18.822] [ 1] [INFO]
[10:57:18.823] [ 1] [INFO] ============================================== ==================================
[10:57:18.823] [ 1] [INFO]应用程序启动
[10:57:18.823] [ 1] [INFO] ======================================= =======================================
[10:57:18.823] [ 1] [INFO](本地时间)开始时间:2019年1月10日,星期四,格林尼治标准时间
[10:57:18.823] [ 1] [INFO]开始时间(UTC):2019年1月9日,星期三,格林尼治标准时间
[10:57:18.824] [ 1] [INFO]应用程序版本:1.2.70.0
[10:57:18.824] [ 1] [INFO]应用程序生成日期:2018-12-17 07:19:47Z
[10:57:20.913] [ 1] [INFO]遥测会话标识符:{ff427902-a28e-4b3a-ae1f-b0a62533df80}
[10:57:20.913] [ 1] [INFO]遥测设备标识符:lC9f0C6moei//eVMHqVFM5Sw7xTCZfZjkTF390PqkO4 =
[10:57:20.913] [ 1] [INFO]应用程序构建标识符:AD-IAM-HybridSync主站(590693a40)
[10:57:21.026] [ 1] [INFO] machine.config路径:C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config \ machine.config.
[10:57:21.026] [ 1] [INFO]默认代理[ProxyAddress]:< Unspecified>
[10:57:21.027] [ 1] [INFO]默认代理[UseSystemDefault]:未指定
[10:57:21.027] [ 1] [INFO]默认代理[BypassOnLocal]:未指定
[10:57:21.027] [ 1] [INFO]默认代理[Enabled]:True
[10:57:21.027] [ 1] [INFO]默认代理[AutoDetect]:未指定
[10:57:21.086] [ 1] [VERB] Scheduler向导互斥锁等待超时:00:00:05
[10:57:21.086] [ 1] [INFO]允许AADConnect更改:已成功获取配置更改互斥体.
[10:57:21.195] [ 1] [INFO] RootPageViewModel.GetInitialPages:开始检测创建初始页面.
[10:57:21.213] [ 1] [INFO]检查计算机版本是否为6.1.7601或更高版本
[10:57:21.252] [ 1] [INFO]当前操作系统版本是6.3.9600,要求是6.1.7601.
[10:57:21.252] [ 1] [INFO]支持密码哈希同步:"True"
[10:57:21.291] [ 1] [INFO] DetectInstalledComponents阶段:已安装的OS SKU为7
[10:57:21.305] [ 1] [INFO] DetectInstalledComponents阶段:检查安装上下文.
[10:57:21.316] [ 1] [INFO]为以下内容执行升级代码的直接查找:Microsoft Visual C ++ 2013可再发行组件包
[10:57:21.321] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:21.332] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {20400cf0-de7c-327e-9ae4-f0f38d9085f8}:未找到注册产品.
[10:57:21.335] [ 1] [INFO]确定Microsoft Visual C ++ 2013可再发行组件包(20400cf0-de7c-327e-9ae4-f0f38d9085f8)的安装动作
[10:57:21.335] [ 1] [INFO]产品未安装Microsoft Visual C ++ 2013可再发行组件包.
[10:57:21.336] [ 1] [INFO]为以下内容执行升级代码的直接查找:Microsoft Directory Sync Tool
[10:57:21.337] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:21.338] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}:未找到注册产品.
[10:57:21.338] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}:未找到注册产品.
[10:57:21.342] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}:已验证的产品代码{c8ad3784-5841-4e99-97a8-603f2eee3427}.
[10:57:21.343] [ 1] [VERB]包= Microsoft Azure AD Connect同步服务,版本= 1..1.880.0,ProductCode = c8ad3784-5841-4e99-97a8-603f2eee3427,UpgradeCode = 545334d7-13cd-4bab-8da1-2775fa8cf7c2
[10:57:21.355] [ 1] [INFO]确定Microsoft Directory Sync工具升级代码的安装操作{bef7e7d9-2ac2-44b9-abfc-3335222b92a7},{dc9e604e-37b0-4efc-b429-21721cf49d0d}
[10:57:21.357] [ 1] [INFO] DirectorySyncComponent:未安装产品Microsoft Directory Sync Tool.
[10:57:21.357] [ 1] [INFO]为以下内容执行升级代码的直接查找:Azure AD Sync Engine
[10:57:21.358] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:21.358] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}:已验证的产品代码{c8ad3784-5841-4e99-97a8-603f2eee3427}.
[10:57:21.359] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}:未找到注册产品.
[10:57:21.359] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}:未找到注册产品.
[10:57:21.359] [ 1] [VERB]包= Microsoft Azure AD Connect同步服务,版本= 1..1.880.0,ProductCode = c8ad3784-5841-4e99-97a8-603f2eee3427,UpgradeCode = 545334d7-13cd-4bab-8da1-2775fa8cf7c2
[10:57:21.365] [ 1] [INFO]确定Azure AD Sync Engine(545334d7-13cd-4bab-8da1-2775fa8cf7c2)的安装操作
[10:57:22.000] [ 1] [VERB]检查安装的产品代码:{4e67cad2-d71b-4f06-a7ae-bb49c566bb93}
[10:57:22.000] [ 1] [INFO] GetProductInfoProperty({4e67cad2-d71b-4f06-a7ae-bb49c566bb93},VersionString):未知产品
[10:57:22.001] [ 1] [INFO] AzureADSyncEngineComponent:产品Azure AD Sync Engine(版本1.1.880.0)已安装,需要升级到版本1.2.70.0.
[10:57:22.001] [ 1] [INFO]为以下对象执行升级代码的直接查找:Azure AD Connect同步代理
[10:57:22.001] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.001] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}:未找到注册产品.
[10:57:22.001] [ 1] [INFO]确定Azure AD Connect同步代理(3cd653e3-5195-4ff2-9d6c-db3dacc82c25)的安装操作
[10:57:22.001] [ 1] [INFO]未安装产品Azure AD Connect同步代理.
[10:57:22.001] [ 1] [INFO]为以下内容执行升级代码的直接查找:用于同步的Azure AD Connect Health代理
[10:57:22.001] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.001] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}:未找到注册产品.
[10:57:22.001] [ 1] [INFO]确定用于同步的Azure AD Connect运行状况代理的安装操作(114fb294-8aa6-43db-9e5c-4ede5e32886f)
[10:57:22.001] [ 1] [INFO]未安装用于同步的产品Azure AD Connect运行状况代理.
[10:57:22.001] [ 1] [INFO]为以下项目执行升级代码的直接查找:Microsoft Azure AD Connect身份验证代理
[10:57:22.001] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.001] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}:未找到注册产品.
[10:57:22.001] [ 1] [INFO]确定Microsoft Azure AD Connect身份验证代理(0c06f9df-c56b-42c4-a41b-f5f64d01a35c)的安装操作
[10:57:22.001] [ 1] [INFO]产品未安装Microsoft Azure AD Connect身份验证代理.
[10:57:22.002] [ 1] [INFO]为以下项执行升级代码的直接查找:Microsoft SQL Server 2012命令行实用工具
[10:57:22.002] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.002] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {52446750-c08e-49ef-8c2e-1e0662791e7b}:已验证的产品代码{89ca7913-f891-4546-8f55-355338677fe6}.
[10:57:22.002] [ 1] [VERB] Package = Microsoft SQL Server 2012命令行实用程序,版本= 1.1.4.7001.0,ProductCode = 89ca7913-f891-4546-8f55-355338677fe6,UpgradeCode = 52446750-c08e-49ef-8c2e-1e0662791e7b
[10:57:22.002] [ 1] [INFO]确定Microsoft SQL Server 2012命令行实用工具的安装操作(52446750-c08e-49ef-8c2e-1e0662791e7b)
[10:57:22.003] [ 1] [INFO]产品Microsoft SQL Server 2012命令行实用工具(版本11.4.7001.0)已安装.
[10:57:22.003] [ 1] [INFO]为以下项目执行升级代码的直接查找:Microsoft SQL Server 2012 Express LocalDB
[10:57:22.003] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.003] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {c3593f78-0f11-4d8d-8d82-55460308e261}:已验证的产品代码{72b030ed-b1e3-45e5-ba33-a1f5625f2b93}.
[10:57:22.004] [ 1] [VERB]包= Microsoft SQL Server 2012 Express LocalDB,版本= 1.1.4.7469.6,ProductCode = 72b030ed-b1e3-45e5-ba33-a1f5625f2b93,UpgradeCode = c3593f78-0f11-4d8d-8d82-55460308e261
[10:57:22.004] [ 1] [INFO]确定Microsoft SQL Server 2012 Express LocalDB(c3593f78-0f11-4d8d-8d82-55460308e261)的安装操作
[10:57:22.004] [ 1] [INFO]产品Microsoft SQL Server 2012 Express LocalDB(版本11.4.7469.6)已安装.
[10:57:22.004] [ 1] [INFO]为以下项目执行升级代码的直接查找:Microsoft SQL Server 2012 Native Client
[10:57:22.004] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.004] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {1d2d1fa0-e158-4798-98c6-a296f55414f9}:已验证的产品代码{b9274744-8bae-4874-8e59-2610919cd419}.
[10:57:22.005] [ 1] [VERB]包= Microsoft SQL Server 2012本机客户端,版本= 1.1.4.7001.0,ProductCode = b9274744-8bae-4874-8e59-2610919cd419,UpgradeCode = 1d2d1fa0-e158-4798-98c6-a296f55414f9
[10:57:22.005] [ 1] [INFO]确定Microsoft SQL Server 2012本机客户端(1d2d1fa0-e158-4798-98c6-a296f55414f9)的安装操作
[10:57:22.005] [ 1] [INFO]产品Microsoft SQL Server 2012本机客户端(版本11.4.7001.0)已安装.
[10:57:22.005] [ 1] [INFO]为以下项目执行升级代码的直接查找:Microsoft Azure AD Connect身份验证代理
[10:57:22.005] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.005] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}:未找到注册产品.
[10:57:22.005] [ 1] [INFO]确定Microsoft Azure AD Connect身份验证代理(fb3feca7-5190-43e7-8d4b-5eec88ed9455)的安装操作
[10:57:22.005] [ 1] [INFO]产品未安装Microsoft Azure AD Connect身份验证代理.
[10:57:22.006] [ 1] [INFO]确定Microsoft Azure AD连接工具的安装操作.
[10:57:22.240] [ 1] [WARN]无法读取DisplayName注册表项:执行"Get-ItemProperty"命令时发生错误.找不到路径'HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ MicrosoftAzureADConnectionTool' 因为它不存在.
[10:57:22.241] [ 1] [INFO]产品未安装Microsoft Azure AD连接工具.
[10:57:22.241] [ 1] [INFO]为以下内容执行升级代码的直接查找:Azure Active Directory Connect
[10:57:22.241] [ 1] [VERB]通过升级代码获取已安装软件包的列表
[10:57:22.241] [ 1] [INFO] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}:已验证的产品代码{b9170312-edaf-4e0c-9241-2407915b93ec}.
[10:57:22.241] [ 1] [VERB] Package = Microsoft Azure AD Connect,Version = 1.2.70.0,ProductCode = b9170312-edaf-4e0c-9241-2407915b93ec,UpgradeCode = d61eb959-f2d1-4170-be64-4dc367f451ea
[10:57:22.241] [ 1] [INFO]确定Azure Active Directory Connect(d61eb959-f2d1-4170-be64-4dc367f451ea)的安装操作
[10:57:22.241] [ 1] [INFO]已安装产品Azure Active Directory Connect(版本1.2.70.0).
[10:57:22.450] [ 1] [INFO] ServiceControllerProvider:GetServiceStartMode(seclogon)为手动".
[10:57:22.452] [ 1] [INFO] ServiceControllerProvider:验证EventLog是否处于状态(正在运行)
[10:57:22.454] [ 1] [INFO] ServiceControllerProvider:当前服务状态:正在运行
[10:57:22.454] [ 1] [INFO] DetectInstalledComponents阶段:需要同步引擎升级.
[10:57:22.456] [ 1] [WARN] MicrosoftOnlinePersistedStateProvider.Backup:无法找到要备份的持久状态文件.路径:C:\ ProgramData \ AADConnect \ PersistedState.xml
[10:57:22.670] [ 1] [INFO] CallExportSyncConfig:启动ExportSyncConfig.exe.
[10:57:23.678] [ 1] [INFO] ServiceControllerProvider:验证ADSync处于运行状态(正在运行)
[10:57:23.679] [ 1] [错误]在根页面上创建初始页面集时遇到异常.
异常数据(原始):System.InvalidOperationException:在计算机."上找不到服务ADSync. ---> System.ComponentModel.Win32Exception:指定的服务不作为已安装的服务存在
---内部异常堆栈跟踪的结尾---
at System.ServiceProcess.ServiceController.GenerateNames()
at System.ServiceProcess.ServiceController.get_ServiceName()
at System.ServiceProcess.ServiceController.GenerateStatus()
at System.ServiceProcess.ServiceController.get_Status()
at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.IsServiceInState(String serviceName,ServiceControllerStatus requiredStatus)
at Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.DetectInstalledComponents.Execute(String& message,GlobalContext globalWizardContext,Boolean& isPasswordSyncSupported)
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.GetInitialPagesCore()
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.GetInitialPages()
[10:57:44.835] [ 1] [INFO]在路径C:\ ProgramData \ AADConnect \ trace-20190110-105718.log
[10:57:18.822] [ 1] [INFO ]
[10:57:18.823] [ 1] [INFO ] ================================================================================
[10:57:18.823] [ 1] [INFO ] Application starting
[10:57:18.823] [ 1] [INFO ] ================================================================================
[10:57:18.823] [ 1] [INFO ] Start Time (Local): Thu, 10 Jan 2019 10:57:18 GMT
[10:57:18.823] [ 1] [INFO ] Start Time (UTC): Wed, 09 Jan 2019 23:57:18 GMT
[10:57:18.824] [ 1] [INFO ] Application Version: 1.2.70.0
[10:57:18.824] [ 1] [INFO ] Application Build Date: 2018-12-17 07:19:47Z
[10:57:20.913] [ 1] [INFO ] Telemetry session identifier: {ff427902-a28e-4b3a-ae1f-b0a62533df80}
[10:57:20.913] [ 1] [INFO ] Telemetry device identifier: lC9f0C6moei//eVMHqVFM5Sw7xTCZfZjkTF390PqkO4=
[10:57:20.913] [ 1] [INFO ] Application Build Identifier: AD-IAM-HybridSync master (590693a40)
[10:57:21.026] [ 1] [INFO ] machine.config path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.
[10:57:21.026] [ 1] [INFO ] Default Proxy [ProxyAddress]: <Unspecified>
[10:57:21.027] [ 1] [INFO ] Default Proxy [UseSystemDefault]: Unspecified
[10:57:21.027] [ 1] [INFO ] Default Proxy [BypassOnLocal]: Unspecified
[10:57:21.027] [ 1] [INFO ] Default Proxy [Enabled]: True
[10:57:21.027] [ 1] [INFO ] Default Proxy [AutoDetect]: Unspecified
[10:57:21.086] [ 1] [VERB ] Scheduler wizard mutex wait timeout: 00:00:05
[10:57:21.086] [ 1] [INFO ] AADConnect changes ALLOWED: Successfully acquired the configuration change mutex.
[10:57:21.195] [ 1] [INFO ] RootPageViewModel.GetInitialPages: Beginning detection for creating initial pages.
[10:57:21.213] [ 1] [INFO ] Checking if machine version is 6.1.7601 or higher
[10:57:21.252] [ 1] [INFO ] The current operating system version is 6.3.9600, the requirement is 6.1.7601.
[10:57:21.252] [ 1] [INFO ] Password Hash Sync supported: 'True'
[10:57:21.291] [ 1] [INFO ] DetectInstalledComponents stage: The installed OS SKU is 7
[10:57:21.305] [ 1] [INFO ] DetectInstalledComponents stage: Checking install context.
[10:57:21.316] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2013 Redistributable Package
[10:57:21.321] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:21.332] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {20400cf0-de7c-327e-9ae4-f0f38d9085f8}: no registered products found.
[10:57:21.335] [ 1] [INFO ] Determining installation action for Microsoft Visual C++ 2013 Redistributable Package (20400cf0-de7c-327e-9ae4-f0f38d9085f8)
[10:57:21.335] [ 1] [INFO ] Product Microsoft Visual C++ 2013 Redistributable Package is not installed.
[10:57:21.336] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Directory Sync Tool
[10:57:21.337] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:21.338] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
[10:57:21.338] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
[10:57:21.342] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: verified product code {c8ad3784-5841-4e99-97a8-603f2eee3427}.
[10:57:21.343] [ 1] [VERB ] Package=Microsoft Azure AD Connect synchronization services, Version=1.1.880.0, ProductCode=c8ad3784-5841-4e99-97a8-603f2eee3427, UpgradeCode=545334d7-13cd-4bab-8da1-2775fa8cf7c2
[10:57:21.355] [ 1] [INFO ] Determining installation action for Microsoft Directory Sync Tool UpgradeCodes {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}, {dc9e604e-37b0-4efc-b429-21721cf49d0d}
[10:57:21.357] [ 1] [INFO ] DirectorySyncComponent: Product Microsoft Directory Sync Tool is not installed.
[10:57:21.357] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Sync Engine
[10:57:21.358] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:21.358] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: verified product code {c8ad3784-5841-4e99-97a8-603f2eee3427}.
[10:57:21.359] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
[10:57:21.359] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
[10:57:21.359] [ 1] [VERB ] Package=Microsoft Azure AD Connect synchronization services, Version=1.1.880.0, ProductCode=c8ad3784-5841-4e99-97a8-603f2eee3427, UpgradeCode=545334d7-13cd-4bab-8da1-2775fa8cf7c2
[10:57:21.365] [ 1] [INFO ] Determining installation action for Azure AD Sync Engine (545334d7-13cd-4bab-8da1-2775fa8cf7c2)
[10:57:22.000] [ 1] [VERB ] Check product code installed: {4e67cad2-d71b-4f06-a7ae-bb49c566bb93}
[10:57:22.000] [ 1] [INFO ] GetProductInfoProperty({4e67cad2-d71b-4f06-a7ae-bb49c566bb93}, VersionString): unknown product
[10:57:22.001] [ 1] [INFO ] AzureADSyncEngineComponent: Product Azure AD Sync Engine (version 1.1.880.0) is installed, needs to be upgraded to version 1.2.70.0.
[10:57:22.001] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Synchronization Agent
[10:57:22.001] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.001] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}: no registered products found.
[10:57:22.001] [ 1] [INFO ] Determining installation action for Azure AD Connect Synchronization Agent (3cd653e3-5195-4ff2-9d6c-db3dacc82c25)
[10:57:22.001] [ 1] [INFO ] Product Azure AD Connect Synchronization Agent is not installed.
[10:57:22.001] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Health agent for sync
[10:57:22.001] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.001] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}: no registered products found.
[10:57:22.001] [ 1] [INFO ] Determining installation action for Azure AD Connect Health agent for sync (114fb294-8aa6-43db-9e5c-4ede5e32886f)
[10:57:22.001] [ 1] [INFO ] Product Azure AD Connect Health agent for sync is not installed.
[10:57:22.001] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
[10:57:22.001] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.001] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}: no registered products found.
[10:57:22.001] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (0c06f9df-c56b-42c4-a41b-f5f64d01a35c)
[10:57:22.001] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
[10:57:22.002] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Command Line Utilities
[10:57:22.002] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.002] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {52446750-c08e-49ef-8c2e-1e0662791e7b}: verified product code {89ca7913-f891-4546-8f55-355338677fe6}.
[10:57:22.002] [ 1] [VERB ] Package=Microsoft SQL Server 2012 Command Line Utilities , Version=11.4.7001.0, ProductCode=89ca7913-f891-4546-8f55-355338677fe6, UpgradeCode=52446750-c08e-49ef-8c2e-1e0662791e7b
[10:57:22.002] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Command Line Utilities (52446750-c08e-49ef-8c2e-1e0662791e7b)
[10:57:22.003] [ 1] [INFO ] Product Microsoft SQL Server 2012 Command Line Utilities (version 11.4.7001.0) is installed.
[10:57:22.003] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Express LocalDB
[10:57:22.003] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.003] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {c3593f78-0f11-4d8d-8d82-55460308e261}: verified product code {72b030ed-b1e3-45e5-ba33-a1f5625f2b93}.
[10:57:22.004] [ 1] [VERB ] Package=Microsoft SQL Server 2012 Express LocalDB , Version=11.4.7469.6, ProductCode=72b030ed-b1e3-45e5-ba33-a1f5625f2b93, UpgradeCode=c3593f78-0f11-4d8d-8d82-55460308e261
[10:57:22.004] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Express LocalDB (c3593f78-0f11-4d8d-8d82-55460308e261)
[10:57:22.004] [ 1] [INFO ] Product Microsoft SQL Server 2012 Express LocalDB (version 11.4.7469.6) is installed.
[10:57:22.004] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Native Client
[10:57:22.004] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.004] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {1d2d1fa0-e158-4798-98c6-a296f55414f9}: verified product code {b9274744-8bae-4874-8e59-2610919cd419}.
[10:57:22.005] [ 1] [VERB ] Package=Microsoft SQL Server 2012 Native Client , Version=11.4.7001.0, ProductCode=b9274744-8bae-4874-8e59-2610919cd419, UpgradeCode=1d2d1fa0-e158-4798-98c6-a296f55414f9
[10:57:22.005] [ 1] [INFO ] Determining installation action for Microsoft SQL Server 2012 Native Client (1d2d1fa0-e158-4798-98c6-a296f55414f9)
[10:57:22.005] [ 1] [INFO ] Product Microsoft SQL Server 2012 Native Client (version 11.4.7001.0) is installed.
[10:57:22.005] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
[10:57:22.005] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.005] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}: no registered products found.
[10:57:22.005] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (fb3feca7-5190-43e7-8d4b-5eec88ed9455)
[10:57:22.005] [ 1] [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
[10:57:22.006] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connection Tool.
[10:57:22.240] [ 1] [WARN ] Failed to read DisplayName registry key: An error occurred while executing the 'Get-ItemProperty' command. Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicrosoftAzureADConnectionTool' because it does not exist.
[10:57:22.241] [ 1] [INFO ] Product Microsoft Azure AD Connection Tool is not installed.
[10:57:22.241] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Azure Active Directory Connect
[10:57:22.241] [ 1] [VERB ] Getting list of installed packages by upgrade code
[10:57:22.241] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: verified product code {b9170312-edaf-4e0c-9241-2407915b93ec}.
[10:57:22.241] [ 1] [VERB ] Package=Microsoft Azure AD Connect, Version=1.2.70.0, ProductCode=b9170312-edaf-4e0c-9241-2407915b93ec, UpgradeCode=d61eb959-f2d1-4170-be64-4dc367f451ea
[10:57:22.241] [ 1] [INFO ] Determining installation action for Azure Active Directory Connect (d61eb959-f2d1-4170-be64-4dc367f451ea)
[10:57:22.241] [ 1] [INFO ] Product Azure Active Directory Connect (version 1.2.70.0) is installed.
[10:57:22.450] [ 1] [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.
[10:57:22.452] [ 1] [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)
[10:57:22.454] [ 1] [INFO ] ServiceControllerProvider: current service status: Running
[10:57:22.454] [ 1] [INFO ] DetectInstalledComponents stage: Sync engine upgrade required.
[10:57:22.456] [ 1] [WARN ] MicrosoftOnlinePersistedStateProvider.Backup: unable to locate the persisted state file for backup. Path: C:\ProgramData\AADConnect\PersistedState.xml
[10:57:22.670] [ 1] [INFO ] CallExportSyncConfig: launching ExportSyncConfig.exe.
[10:57:23.678] [ 1] [INFO ] ServiceControllerProvider: verifying ADSync is in state (Running)
[10:57:23.679] [ 1] [ERROR] Caught an exception while creating the initial page set on the root page.
Exception Data (Raw): System.InvalidOperationException: Service ADSync was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.GenerateNames()
at System.ServiceProcess.ServiceController.get_ServiceName()
at System.ServiceProcess.ServiceController.GenerateStatus()
at System.ServiceProcess.ServiceController.get_Status()
at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.IsServiceInState(String serviceName, ServiceControllerStatus desiredStatus)
at Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.DetectInstalledComponents.Execute(String& message, GlobalContext globalWizardContext, Boolean& isPasswordSyncSupported)
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.GetInitialPagesCore()
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.GetInitialPages()
[10:57:44.835] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20190110-105718.log
该工具说要在此处发布以获取有关此方面的帮助.那我现在该怎么办?
The tool says to post here to get help with this. So what do I do now?
推荐答案
修复了该问题.
同一问题上有数百篇文章发表了多年.
There are hundreds of posts of this same issue going on for years.
这篇关于无法重新安装Azure AD Connect-“在计算机上找不到Service ADSync"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!