更新时间:2022-09-27 17:42:49
最近一个朋友问我,说他安装Exchange 2013安装时候报了一个错误,不知道咋回事,问我遇到过吗。
我看了一眼,呵呵,今年看来真该找个寺庙拜拜佛了,这个问题是我遇到的第四次了,17年就遇到了3次,哎,今天就给大家分享下该问题的解决方案,废话不多说,我们来看看问题。
问题描述:
Error:
The following error was generated when “$error.Clear();
$keyPath = “HKLM:SoftwareMicrosoftWebManagementServer”; if (!(Get-Item $keyPath -ErrorAction SilentlyContinue)) { New-Item $keyPath -Force } Set-ItemProperty -path $keyPath -name “EnableRemoteManagement” -value 0x1 -Type DWORD -Force; if (Get-Service WMSVC* | ?{$_.Name -eq ‘WMSVC'}) { Set-Service WMSVC -StartupType Automatic Stop-SetupService -ServiceName WMSVC; Start-SetupService -ServiceName WMSVC } ” was run: “Microsoft.Exchange.Configuration.Tasks.ServiceDidNotReachStatusException: Service ‘WMSVC' failed to reach status ‘Running' on this server.
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target)
at Microsoft.Exchange.Management.Tasks.ManageSetupService.WaitForServiceStatus(ServiceController serviceController, ServiceControllerStatus status, Unlimited1 maximumWaitTime, Boolean ignoreFailures, Boolean sendWatsonReportForHungService)
at Microsoft.Exchange.Management.Tasks.ManageSetupService.StartService(ServiceController serviceController, Boolean ignoreServiceStartTimeout, Boolean failIfServiceNotInstalled, Unlimited1 maximumWaitTime, String[] serviceParameters)
at Microsoft.Exchange.Management.Tasks.ManageSetupService.StartService(String serviceName, Boolean ignoreServiceStartTimeout, Boolean failIfServiceNotInstalled, Unlimited`1 maximumWaitTime, String[] serviceParameters)
at Microsoft.Exchange.Management.Tasks.StartSetupService.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)”.
解决方案:
此问题的常见原因是WMSVC 证书已从服务器上的证书存储中删除,所以现在 管理服务没有分配导致问题的证书。
希望以上内容可以帮助到大家。
本文转自 zyliday 51CTO博客,原文链接:http://blog.51cto.com/itsoul/2063988