--- title: "使用组策略卸载 WXP Insights for Windows 代理" slug: "uninstalling-wxp-insights-for-windows-agent-with-group-policy" description: "Automate the uninstallation of HP Insights for Windows using Group Policy Objects with our step-by-step guide for IT administrators managing device fleets." updated: 2026-08-19T22:43:32Z published: 2026-08-19T22:43:32Z canonical: "learn.workforceexperience.hp.com/uninstalling-wxp-insights-for-windows-agent-with-group-policy" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.workforceexperience.hp.com/llms.txt > Use this file to discover all available pages before exploring further. # 使用组策略卸载 WXP Insights for Windows 代理 ## 介绍 本文为 IT 管理员提供了创建组策略对象 (GPO) 的 分步说明,该对象可跨已加入域的设备自动卸载 WXP Insights for Windows 应用程序 。 此方法对于管理大型设备群的组织特别有用,可以在下线、重新映像或软件转换期间集中删除和取消注册设备。 本文提供了分步指南,用于在 Active Directory 中链接 GPO,并通过启动策略应用卸载 PowerShell 脚本,以确保在下次系统重新启动期间无缝删除。 ### 创建组策略对象 要创建组策略对象以卸载 WXP Insights for Windows 代理: 1. 从[此处](https://ftp.hp.com/pub/caps-softpaq/HP_DaaS/DaaS%20Client%20Scripts/GPO/Install/WXP-Insights-Installation-Scripts.zip)下载卸载PowerShell脚本。 2. 提取卸载脚本。 3. 要打开组策略管理控制台,请在Active Directory (AD) 域控制器上的命令提示符处输入`gpmc.msc`。 4. 选择**在此域中创建GPO并链接它** 此处…. 5. 将组策略对象命名为"Uninstall WXP Insights for Windows Application"。 6. 选择**计算机配置 > Windows设置 > 脚本(启动/关机) > 启动**。 7. 在**启动属性**窗口中,选择**PowerShell脚本**选项卡。 8. 选择**显示文件**。 9. 将脚本文件复制到文件夹中。 10. 在**启动属性**窗口中,选择**添加**。 11. 浏览并选择`wxp-insights-uninstall-script.ps1`文件。 12. 要退出窗口并应用设置,请单击**确定**。客户端计算机在下一个刷新间隔期间接收组策略更新。当客户端计算机重启或启动时,将应用**Uninstall WXP Insights for Windows Application**组策略对象,并且设备将自动从WXP Insights for Windows服务中取消注册。 > **注意**:要成功取消注册设备,它们 必须连接到 Internet。 ## **联系我们** 如需帮助,请创建[**支持案例**](/wxp/docs/zh-cn/creating-a-support-case)或发送电子邮件至 [**support@wxp.hp.com**](mailto:support@wxp.hp.com)。