windows server 2019/2022安装WSUS更新服务器配置System.Runtime.InteropServices.COMException (0x80070842): The Server service is not started.

随笔2个月前发布 温暖的
37 0 0

现象:

windows server 2019/2022安装WSUS更新服务器配置System.Runtime.InteropServices.COMException (0x80070842): The Server service is not started.

 

2024-02-18 14:41:10 Postinstall started
2024-02-18 14:41:10 Detected role services: Api, UI, WidDatabase, Services
2024-02-18 14:41:10 Start: LoadSettingsFromXml
2024-02-18 14:41:10 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2024-02-18 14:41:10 Value is true
2024-02-18 14:41:10 End: GetConfigValue
2024-02-18 14:41:10 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
2024-02-18 14:41:10 Value is E:WSUS
2024-02-18 14:41:10 End: GetConfigValue
2024-02-18 14:41:10 Content directory is E:WSUS
2024-02-18 14:41:10 Database roleservice is not installed
2024-02-18 14:41:10 End: LoadSettingsFromXml
Post install is starting
2024-02-18 14:41:10 Start: Run
2024-02-18 14:41:10 Fetching WsusAdministratorsSid from registry store
2024-02-18 14:41:10 Value is (null)
2024-02-18 14:41:10 Configuring content directory…
2024-02-18 14:41:10 Configuring groups…
2024-02-18 14:41:10 Starting group configuration for WSUS Administrators…
2024-02-18 14:41:10 Group does not already exist in the registry
2024-02-18 14:41:10 System.Runtime.InteropServices.COMException (0x80070842): The Server service is not started.

at System.DirectoryServices.DirectoryEntry.RefreshCache()
at System.DirectoryServices.AccountManagement.PrincipalContext.DoMachineInit()
at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
at System.DirectoryServices.AccountManagement.PrincipalContext.ContextForType(Type t)
at System.DirectoryServices.AccountManagement.Principal.set_Name(String value)
at Microsoft.UpdateServices.Administration.ConfigureGroups.FetchOrCreateGroup(PrincipalContext context, String name, String description)
at Microsoft.UpdateServices.Administration.ConfigureGroups.SetupGroup(PrincipalContext context, String groupName, String description, String registryValue)
at Microsoft.UpdateServices.Administration.ConfigureGroups.Run(Action`1 logWriter)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Fatal Error: The Server service is not started.

 

处理:

1 查看系统日志,cmd窗口
eventvwr

2 powershell窗口查看服务
Get-Service -Name Server

3 查看service里面的Server是否已启动

windows server 2019/2022安装WSUS更新服务器配置System.Runtime.InteropServices.COMException (0x80070842): The Server service is not started.

 

4 启动完Server后,设置为自动启动,再次点击WSUS的配置安装即可

 

其实提示已经很明显,The Server service is not started.

因为这个Server的名称容易忽视,而且公司安全基线要求Server服务关闭的。

只需要提前启动这个就正常安装了。

浪费2天时间,记录下这个问题。

 

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...