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

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

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

卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端


在本文中,我将介绍从计算机中删除或卸载 SCCM 客户端的不同方法。您可以使用不同的方法从 Windows 计算机中完全删除 ConfigMgr 客户端。

本文介绍了可用于卸载 ConfigMgr 客户端的每种方法。您可以了解哪种方法最适合您的组织并选择该方法。

如果您已经开始学习 Configuration Manager,您可能已经熟悉 SCCM 客户端。它也称为 Configuration Manager 代理或 Configuration Manager 客户端代理。有多种方法可以在 Windows PC 上安装 Configuration Manager 客户端代理。这是关于如何在 Windows 11 中安装 SCCM 客户端代理的最佳文章。

有时,如果您发现 SCCM 客户端安装不正确,您可能需要删除或卸载它。每当您发现 ConfigMgr 代理出现问题时,您始终可以修复 SCCM 客户端代理。修复客户端代理涉及从 Windows 卸载 SCCM 客户端代理并重新安装。

什么是 SCCM 客户端代理?

SCCM 客户端代理是一款软件,充当 IT 管理员的操作与用户系统上的实际策略实施和软件部署操作之间的中间人。

大多数 ConfigMgr 管理员更喜欢从计算机上手动卸载 SCCM 客户端代理。您还可以使用 PowerShell 脚本从远程计算机卸载 SCCM 客户端。一些管理员更喜欢使用在线提供的 SCCM 客户端卸载脚本。

虽然用于卸载 SCCM 客户端代理的方法可能有所不同,但目标是从计算机中彻底删除 ConfigMgr 代理。安装软件中心时,软件中心会与 SCCM 代理一起安装在计算机上。了解如何自定义 ConfigMgr 软件中心外观。

推荐文章:Configuration Manager 远程软件中心

方法 1:使用 CCMSETUP 手动卸载 SCCM 客户端

您可以通过运行简单的命令 - ccmsetup.exe /uninstall 来手动卸载 SCCM 客户端。

  • 在 Windows 计算机上,以管理员身份运行命令提示符。
  • 更改客户端代理位置的路径 - C:\Windows\ccmsetup
  • 运行命令ccmsetup.exe /uninstall
  • 卸载客户端代理后重新启动计算机。

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

方法 2:使用 CCMCLEAN 删除 SCCM 客户端

Microsoft 工具 Ccmclean.exe 是 SMS 2003 工具包的一部分,可帮助删除 SCCM 客户端。 SMS 2003 现在已经过时了,但 ccmclean 工具仍然有效。

您可能在网上找不到CCmclean工具安装程序;不过,我已经为您保存了该工具的副本。从 OneDrive 链接下载 ccmclean 工具。您获得的 ccmclean 工具版本是 2.50。

ccmclean 工具的工作原理是检测 SMS 代理安装程序并卸载计算机上的代理。您必须在计算机上手动运行此工具才能清除 SMS 代理。您无法使用此工具远程卸载SCCM客户端。

执行以下步骤使用 ccmclean.exe 卸载 SCCM 客户端:

  • 下载 ccmclean.exe 工具并将其复制到目标计算机。
  • 管理员身份运行 ccmclean.exe。
  • 该工具会卸载 SCCM 代理,最后会出现一个消息框“您的系统已成功清理”。

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

您的系统已成功清理”确认 SCCM 客户端代理已被 ccmclean 工具成功删除。

在此计算机上重新安装 ConfigMgr 代理之前,请重新启动计算机一次。使用 ccmclean 将客户端代理从系统中完全删除。

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

方法 3:使用右键工具卸载 SCCM 客户端

为 Configuration Manager 安装右键单击工具后,您可以使用“卸载 SCCM 客户端”功能从远程计算机上完全删除 ConfigMgr 客户端。

此方法要求您安装 SCCM 的右键单击工具控制台扩展。安装 SCCM 的 RCT 后,您可以选择从 Configuration Manager 控制台删除 SCCM 客户端。

使用以下过程使用右键单击工具从远程计算机卸载 SCCM 客户端:

  • 启动配置管理器控制台。
  • 导航到资产和合规性\概述\设备
  • 右键单击设备并选择右键单击工具 > 客户端工具 > 卸载 SCCM 客户端

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

您会收到一个消息框,询问“您确定要卸载计算机上的客户端”。单击“是”确认删除 ConfigMgr 客户端。

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

使用日志文件监控 SCCM 客户端代理卸载

从计算机中删除 ConfigMgr 客户端后,您可以借助日志文件监控客户端代理卸载。您可以查看两个 ConfigMgr 日志文件来监控 SCCM 客户端卸载过程。

  • Ccmsetup.log:这提供有关基于客户端的操作系统操作的信息。可用于解决客户端安装问题。
  • Client.msi_uninstall.log:记录计算机上 SCCM 客户端代理的卸载情况。

要监控 SCCM 客户端代理卸载,请转至计算机上的 C:\Windows\ccmsetup\Logs 并打开 ccmsetup.log 文件以监控客户端卸载。 ccmsetup.log 中的“CcmSetup is exiting with return code 0”行确认 SCCM 客户端已成功删除。

[玩转系统] 卸载 SCCM 客户端的 3 种方法 |删除 ConfigMgr 客户端

您可以使用任何 ConfigMgr 日志文件查看器打开 SCCM 日志文件并查看详细信息。以下日志片段是来自客户端计算机上的 C:\Windows\ccmsetup\Logs 路径的 ccmsetup.log。此日志文件记录 ConfigMgr 客户端删除的详细信息。

==========[ ccmsetup started in process 6908 ]==========	ccmsetup
Running on platform X64
Detected client installed with version '5.00.9068.1026'	ccmsetup
Updated security on object C:\Windows\ccmsetup\cache\.	ccmsetup
Launch from folder C:\Windows\ccmsetup\	ccmsetup
CcmSetup version: 5.0.9068.1026	ccmsetup
Folder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist.
Folder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist.
Updating MDM_ConfigSetting.ClientDeploymentErrorCode with value 0
[CORPM1] Running on 'Microsoft Windows 10 Pro' (10.0.19044). Service Pack (0.0). SuiteMask = 272. Product Type = 18	ccmsetup	
Ccmsetup command line: "C:\Windows\ccmsetup\ccmsetup.exe" /uninstall
Task 'Configuration Manager Client Retry Task' does not exist
Uninstalling product '{D95FAB92-2BDF-488A-BE50-22B7C7C724D5}'.
Running installation package
  Product:     {D95FAB92-2BDF-488A-BE50-22B7C7C724D5}
  Log:         C:\Windows\ccmsetup\Logs\client.msi_uninstall.log
  Properties: 
MSI: Action 18:32:59: CcmRemoveSystemTask. Deletes a System Task from WMI.
MSI: Action 18:32:59: CcmRemoveEndpoint. Removes endpoint gathered in the action CcmRemoveEndpointsInit with WMI
MSI: Action 18:33:13: RemoveRegistryValues. Removing system registry values
Uninstall of product '{D95FAB92-2BDF-488A-BE50-22B7C7C724D5}' succeeded.	
Uninstall succeeded.
Deleted file C:\Windows\ccmsetup\ccmsetup.cab	ccmsetup
Failed to delete file '\?\C:\Windows\ccmsetup\ccmsetup.exe' (5). Moving it to 'C:\CCM466F.tmp' and queuing for deletion on reboot.
Unable to load profiler: 0x80070002	ccmsetup
Could not retrieve value for MDM_ConfigSetting . Error 0x80041002
CcmSetup is exiting with return code 0	ccmsetup

以下日志片段是客户端计算机上 C:\Windows\ccmsetup\Logs 路径中的 client.msi_uninstall.log 的片段。此日志文件记录 SCCM 客户端代理卸载的详细信息。

MSI (s) (50:B0) [17:40:37:417]: Product: Configuration Manager Client -- Removal completed successfully.
MSI (s) (50:B0) [17:40:37:417]: Windows Installer removed the product. Product Name: Configuration Manager Client. Product Version: 5.00.9068.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Removal success or error status: 0.
MSI (s) (50:B0) [17:40:37:417]: Value of RebootAction property is 
MSI (s) (50:B0) [17:40:37:417]: Windows Installer requires a system restart. Product Name: Configuration Manager Client. Product Version: 5.00.9068.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Type of System Restart: 2. Reason for Restart: 1.
MSI (s) (50:B0) [17:40:37:417]: Product: Configuration Manager Client. Restart required. The installation or update for the product required a restart for all changes to take effect.  The restart was deferred to a later time.
MSI (s) (50:B0) [17:40:37:433]: Deferring clean up of packages/files, if any exist
MSI (s) (50:B0) [17:40:37:433]: MainEngineThread is returning 3010
MSI (s) (50:64) [17:40:37:433]: RESTART MANAGER: Session closed.
MSI (s) (50:64) [17:40:37:433]: No System Restore sequence number for this installation.
=== Logging stopped: 3/28/2022  17:40:37 ===
MSI (s) (50:64) [17:40:37:433]: User policy value 'DisableRollback' is 0
MSI (s) (50:64) [17:40:37:433]: Machine policy value 'DisableRollback' is 0
MSI (s) (50:64) [17:40:37:433]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (50:64) [17:40:37:433]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (50:64) [17:40:37:433]: Note: 1: 2265 2:  3: -2147287035 
MSI (s) (50:64) [17:40:37:433]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (50:64) [17:40:37:433]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (s) (50:64) [17:40:37:433]: Post-install cleanup: removing installer file 'C:\Windows\Installere95ea.msi'
MSI (s) (50:64) [17:40:37:449]: Post-install cleanup: removing installer file 'C:\Windows\Installere95eb.msp'
MSI (s) (50:64) [17:40:37:449]: Post-install cleanup: removing installer file 'C:\Windows\Installer8253b.msp'
MSI (s) (50:64) [17:40:37:449]: Destroying RemoteAPI object.
MSI (s) (50:24) [17:40:37:449]: Custom Action Manager thread ending.
MSI (c) (B0:CC) [17:40:37:449]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (B0:CC) [17:40:37:449]: MainEngineThread is returning 3010

最后的想法

您可以使用本文中描述的任何技术删除 SCCM 客户端。选择最适合您业务的策略。需要安装 ConfigMgr 代理才能使用 SCCM 管理计算机。因此,请确保 SCCM 代理正在您的所有设备上运行。

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

取消回复欢迎 发表评论:

关灯