Configuration Manager 客户端每 5 小时重新安装一次,并可能导致无意中的客户端升级

本文讨论了 System Center 2012 Configuration Manager 客户端和 System Center 2012 R2 Configuration Manager 客户端中的一个问题,该问题可能会导致在 Configuration Manager 的当前分支或长期服务分支(LTSB)环境中出现意外的客户端升级。

原始产品版本: Microsoft System Center 2012 Configuration Manager,Microsoft System Center 2012 R2 Configuration Manager
原始 KB 数: 4018655

摘要

Configuration Manager 客户端安装(CCMSetup)最初失败,导致在 Windows 任务计划程序中注册客户端重试任务。 客户端安装成功后,不会按预期删除重试任务。 因此,客户端将继续每五小时重新安装一次。

在这种情况下,如果将 Configuration Manager 基础结构升级到 Configuration Manager Current Branch 或 LTSB,并且未升级 Configuration Manager 客户端,则计划的重试任务将继续强制客户端每 5 小时重新安装一次。

下次运行 CCMSetup 时,客户端会找到更新的管理点或分发点,并重新安装客户端软件。 这会将客户端升级到 Configuration Manager。

这些持续升级发生在管理员配置的正常升级过程之外。 这包括客户端试点功能。

症状

在 Microsoft System Center 2012 或 System Center 2012 R2 环境中,你会注意到以下症状:

  • 客户端每 5 小时成功重新安装一次。 此活动记录在ccmsetup.log和 Windows 事件日志中。
  • 在任务计划程序查看 \Microsoft\Microsoft\ConfigurationManager 文件夹时,可以找到名为 Configuration Manager 客户端重试任务的任务。

原因

出现此问题的原因是 CCMSetup 在客户端上的错误文件夹中创建客户端重试任务。 这可以防止 CCMSetup 查找和删除任务。

计划任务在 \Microsoft\Microsoft\Configuration Manager 文件夹中创建,而不是 \Microsoft\Configuration Manager 文件夹。

解决方法 1

使用任务计划程序从 \Microsoft\Microsoft\Configuration Manager 文件夹中手动删除 Configuration Manager 客户端重试任务

解决方法 2

部署脚本以从 \Microsoft\Microsoft\Configuration Manager 文件夹中删除 Configuration Manager 客户端重试任务

示例 Windows PowerShell 命令要添加到您的脚本中:

get-scheduledtask -taskname "Configuration Manager Client Retry Task"  
unregister-scheduledtask -taskname "Configuration Manager Client Retry Task" -confirm:$false

详细信息

在 Configuration Manager Current Branch 版本 1602 及更高版本中,在 LTSB 版本 1606 中,Ccmsetup 在升级客户端后正确删除了计划的任务。