--- title: "通过 Active Directory GPO 使用单一安装程序(.exe)进行部署" slug: "deploy-via-active-directory-gpo-using-single-installer" updated: 2026-06-19T06:12:24Z published: 2026-06-19T06:12:24Z canonical: "learn.workforceexperience.hp.com/deploy-via-active-directory-gpo-using-single-installer" --- > ## 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. # 通过 Active Directory GPO 使用单一安装程序(.exe)进行部署 管理一组 Windows 设备的组织通常需要一种可靠且可缩放的方式来部署监视和遥测工具,而无需手动干预。自动安装 HP Insights Windows 应用程序(也称为 Windows 代理)可确保与 Workforce Experience Platform (WXP) 的一致注册,提高对设备性能的可见性,并减少管理开销。 本文提供了使用 setup.exe installe 和 Microsoft Active Directory(用于组策略对象的标准目录服务)部署 Windows 代理的分步指南。此部署方法非常适合希望使用组策略提供的预定义任务执行模板自动安装 Windows 代理的 IT 管理员,并利用 setup.exe 中捆绑的 Windows 可执行文件。 此自动部署方法使用Install.CMD批处理脚本来检查设备启动时是否安装了 Windows 代理。该脚本使设备能够通过网络运行setup.exe。然后从网络复制软件并通过组策略自动安装。当用户登录到其设备时,设备会自动注册 Workforce Experience Platform 服务。 > **注意**:设备必须连接到互联网才能注册 WXP。用户还必须具有安装软件的权限;否则,代理可能无法正确安装。 ## **使用 setup.exe 下载 Windows 代理** 下载 Windows Agent: 1. 访问 [**下载 HP Insights 软件**](https://workforceexperience.hp.com/software)。 2. 在 [**下载 HP Insights 软件**](https://workforceexperience.hp.com/software) 页面,点击 **HP Insights Windows Application**。将显示版本列表。 3. 点击 **下载**。会显示两种安装程序:x86 Single Installer (.exe) 和 Arm64 Single Installer (.exe)。 4. **Setup Installer**: - 选择 x86 Single Installer (.exe)。将下载 setup.exe 文件。用于 32 位或 64 位平台。 - 选择 Arm64 Single Installer (.exe)。将下载 setuparm.exe 文件。用于 Arm64 平台。 > **注意:** HP Insights Analytics 客户端 - 依赖项包不能安装在非 HP 制造的 PC(包括虚拟机)上。 ## **在 GPO 中创建应用程序** 若要创建用于静默安装 Windows 代理的组策略对象 (GPO): 1. 创建一个Install.CMD批处理脚本文件。 1. 有关更多信息,请参阅文章 - [Automatically Enroll Windows Devices Using an Install.CMD Batch Script File](/wxp/docs/automatically-enroll-windows-devices-using-an-install) 2. 在 AD 域控制器上,打开命令提示符,然后键入 **gpmc.msc** 以打开 **AD 组策略管理** 控制台。 3. 右键单击 **域名**,然后选择 “**在此域中创建 GPO**”,并在 **此处链接。** 4. 从步骤 3 中将组策略对象命名为 **HP Insights for Windows Application Auto Install** 。 5. 右键单击新的 **GPO HP Insights for Windows 应用程序自动安装**,然后选择 **编辑。** 6. 选择 **计算机配置>** **Windows 设置** > **脚本(启动/关闭)** > **启动**。 7. 在 **“启动属性** ”对话框中,选择“ **显示文件**”。 8. 将Install.CMD批处理文件复制到文件夹中。将显示一个标题为 **“启动属性”** 的对话框。 9. 在**“启动属性**”对话框中,选择**“添加”**,浏览到该位置,然后选择**Install.CMD**文件。 10. 选择 **“确定** ”关闭对话框。 设备将在下一次刷新间隔期间接收组策略更新。 > **注意**:通过组策略对象 (GPO) 部署HPInsights.msi时,请确保客户端设备具有管理权限。 ## **联系我们** 如需帮助,请创建[**支持案例**](/wxp/docs/zh-cn/creating-a-support-case)或发送电子邮件至 [**support@wxp.hp.com**](mailto:support@wxp.hp.com)。