当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

作者:精品下载站 日期:2024-12-14 11:38:22 浏览:14 分类:玩电脑

无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005


在少数客户端计算机上,我注意到在 WUAHandler.log 中无法为类型 (2) 的 WUAgent 添加更新源错误=0x80004005。您可能还会遇到同样的问题,错误代码为 0x8007000d。

让我向您展示我在客户端计算机上的 WUAHandler.log 文件中看到的内容。无法为类型 (2) 的 WUAgent 添加更新源 对于每个 ID 都会重复。错误代码可能是 0x80004005 或 0x8007000d。

我们看到的第二个错误是无法读取现有的 WUA 组策略对象。错误=0x80004005。

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

Failed to Add Update Source for WUAgent of type (2) and id ({AA5DBF4A-0002-4D92-BD93-8972BED9C201}). Error = 0x80004005. WUAHandler 14-12-2020 18:05:45 11460 (0x2CC4)
Its a WSUS Update Source type ({AA5DBF4A-0002-4D92-BD93-8972BED9C201}), adding it. WUAHandler 14-12-2020 18:05:46 23352 (0x5B38)
Device is not MDM enrolled yet. All workloads are managed by SCCM. WUAHandler 14-12-2020 18:05:46 21356 (0x536C)
SourceManager::GetIsWUfBEnabled - There is no Windows Update for Business settings assignment. Windows Update for Business is not enabled through ConfigMgr WUAHandler 14-12-2020 18:05:46 21356 (0x536C)
Unable to read existing WUA Group Policy object. Error = 0x80004005. WUAHandler 14-12-2020 18:05:46 23352 (0x5B38)
Enabling WUA Managed server policy to use server: https://corpsccm.prajwal.org:8531 WUAHandler 14-12-2020 18:05:46 23352 (0x5B38)
Device is not MDM enrolled yet. All workloads are managed by SCCM. WUAHandler 14-12-2020 18:05:46 4352 (0x1100)
SourceManager::GetIsWUfBEnabled - There is no Windows Update for Business settings assignment. Windows Update for Business is not enabled through ConfigMgr WUAHandler 14-12-2020 18:05:46 4352 (0x1100)
Failed to Add Update Source for WUAgent of type (2) and id ({AA5DBF4A-0002-4D92-BD93-8972BED9C201}). Error = 0x80004005. WUAHandler 14-12-2020 18:05:46 23352 (0x5B38)

软件更新部署在这些客户端计算机上不起作用。这些机器使用 VPN,我在这些机器上观察到同样的错误。

UpdatesDeployment.log 文件报告无法获取目标更新,错误=0x87d00215。这清楚地说明出了什么问题。

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

GetUpdateInfo - failed to get targeted update, error = 0x87d00215. UpdatesDeploymentAgent 14-12-2020 18:46:30 484 (0x01E4)
Assignment {27ac5caa-8f4a-4379-a13d-9a34f395ae3f} has total CI = 257 UpdatesDeploymentAgent 14-12-2020 18:46:30 484 (0x01E4)
Assignment ({27ac5caa-8f4a-4379-a13d-9a34f395ae3f}) reconnected to the existing job ({B8921FF0-0675-4B22-933D-EB75E405CA42}) successfully. UpdatesDeploymentAgent 14-12-2020 18:46:30 484 (0x01E4)
GetUpdateInfo - failed to get targeted update, error = 0x87d00215. UpdatesDeploymentAgent 14-12-2020 18:46:30 484 (0x01E4)

现在的问题是为什么该错误会记录在 WUAHandler.log 中。虽然没有确切的答案,但这是我的假设。我认为这可能是由于客户端计算机上的本地组策略损坏造成的。

什么是Registry.pol?

根据微软的说法,组策略对象编辑器将基于注册表的配置设置存储在两个Registry.pol 文件中。它们存储在 :\Windows\System32\GroupPolicy\ 文件夹下的文件夹中。一个文件包含计算机设置,另一个文件包含用户设置。

删除Registry.pol不会导致任何问题,因为它会创建一个同名的新文件。但在删除之前,建议您备份该文件。

修复无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

如果您在 WUAHandler.log 中注意到无法为类型 (2) 的 WUAgent 添加更新源消息,请执行以下步骤。

  • 在客户端计算机上,转到 C:\Windows\System32\GroupPolicy\Machine。
  • 将Registry.pol 文件备份到其他文件夹或简单地重命名,例如Registry.old.pol。
  • 您还可以从计算机文件夹中删除Registry.pol 文件。
  • 重新启动 SMS 代理主机服务(SCCM 客户端代理服务-CCMEXEC),这应该可以修复错误 0x80004005。
  • 最后在配置管理器操作选项卡中重新运行软件更新扫描周期。

我已将Registry.pol 重命名为Registry.old.pol。

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

接下来,在客户端计算机上,转到服务控制台并重新启动 SMS 代理主机服务。

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

重新启动 SMS 代理主机服务后,返回到 C:\Windows\System32\GroupPolicy\Machine。请注意,我们有一个新的Registry.pol 文件。您现在可以删除旧文件。

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

现在,在“配置管理器操作”选项卡中重新运行软件更新扫描周期。打开 WUAHandler.log 并注意,我们不再看到 Failed to Add Update Source for WUAgent Error=0x80004005。

[玩转系统] 无法为类型 (2) 的 WUAgent 添加更新源错误 0x80004005

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯