介绍
Microsoft Intune - MSI 安裝程式是以 Windows 為基礎的部署套件,可讓您 (IT 管理員) 使用 Microsoft Intune 跨企業管理的裝置安裝和管理 HP Insights Windows 應用程式 (也稱為 Windows 代理程式)。它旨在簡化 HP Insights Windows 應用程式的部署、更新和管理。
本文涵蓋使用 MSI Installer 部署 Windows 代理程式,以及使用 Microsoft Intune 註冊裝置的逐步步驟:
將 UPN 尾碼 提供給指定的 HP 服務專家或業務合作夥伴。
取得公司 PIN。
登入WXP,然後按一下設定>首選項。
在 [偏好設定 ] 索引標籤上,捲動至** 公司 PIN** 區段,然後複製 PIN 碼。
下載 HP Insights Windows 應用程式 (MSI 安裝程式)
使用 Microsoft Win32 內容準備工具轉換 HP Insights Windows 應用程式 (MSI 安裝程式)
在 Microsoft Intune 中建立 HP Insights Windows 應用程式 (MSI 安裝程式)。
目標受眾
想要透過 MSI 提供的無訊息安裝參數和組態管理工具,使用 Intune 雲端式工具來設定和管理 Workforce Experience Platform 的 IT 系統管理員。
必要條件
使用者必須在 Microsoft Azure 中具有系統管理員角色。
系統管理員的電子郵件會顯示在主要使用者 UPN 中。
系統管理員的裝置必須新增 公司入口網站,這是 Microsoft 的免費應用程式。
下載 HP Insights Windows Application – ZIP 套件(.msi)
將
.zip檔案的內容儲存至 Intune 可存取的位置。共有兩個.zip檔案:x86 ZIP 套件(.msi) ⇒
HPInsights.zip(適用於 32 位元及 64 位元 Intel 平台)ARM64 ZIP 套件(.msi) ⇒
HPInsights-arm64.zip(適用於 ARM64 平台)
Intel 套件
VC++ 可轉散發套件(x86)
VC++ 可轉散發套件(x64)
HP Insights Analytics Client 相依性
HP Insights Analytics Client 套件
HP Insights Manager Application
ARM 套件
VC++ 可轉散發套件(ARM64)
HP Insights Analytics Client 相依性
HP Insights Analytics Client 套件
HP Insights Manager Application
注意:HP Insights Analytics Client – 相依性 套件無法安裝於非 HP 製造的電腦(包含虛擬機器)。
使用 Microsoft Win32 Content Prep Tool 轉換 Windows 版 WXP 應用程式 ZIP 套件(.msi)
從此處下載 Win32 Content Prep Tool。
將
IntuneWinAppUtil.exe儲存或下載至本機資料夾C:\Tool。
第 1 節:為 Intel 裝置建立 Intune 部署套件(Intel 套件)
解壓縮
HPInsights.zip,並將內容放置於本機資料夾C:\Intune\IntelPkgs\。VC_redist.x86.exeVC_redist.x64.exeHPInsightsAnalyticsDependencies.msiHPInsights.msiHPInsightsAnalytics.msi
以系統管理員身分開啟命令提示字元(Admin command prompt)。
前往
C:\Intune資料夾,依序執行以下命令,將安裝程式轉換為 Intune 格式:C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s VC_redist.x86.exe -o C:\Intune\Output\IntelPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s VC_redist.x64.exe -o C:\Intune\Output\IntelPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s HPInsightsAnalyticsDependencies.msi -o C:\Intune\Output\IntelPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s HPInsightsAnalytics.msi -o C:\Intune\Output\IntelPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c IntelPkgs -s HPInsights.msi -o C:\Intune\Output\IntelPkgsIntune檔案成功轉換後,將會建立以下 intunewin 檔案,並出現在
C:\Intune\Output\IntelPkgsIntune目錄中:VC_redist.x86.intunewinVC_redist.x64.intunewinHPInsightsAnalyticsDependencies.intunewinHPInsightsAnalytics.intunewinHPInsights.intunewin
為 Intel 裝置建立 Intune 應用程式:
使用IntelPkgsIntune資料夾中的 Intune 套件,依下方所列的 第一個應用程式到第六個應用程式章節建立 Intune 應用程式。Intel 裝置的部署指引:
請參閱下方 Intune 中的一般應用程式部署步驟 一節,以部署上述步驟中所建立的 Intel 裝置 Intune 應用程式。
第 2 節:為 ARM 裝置建立 Intune 部署套件(ARM 套件)
解壓縮
HPInsights.zip,並將內容放置於本機資料夾C:\Intune\ArmPkgs\。VC_redist.arm64.exeHPInsightsAnalyticsDependencies.msiHPInsights.msiHPInsightsAnalytics.msi
以系統管理員身分開啟命令提示字元(Admin command prompt)。
前往
C:\Intune資料夾,依序執行以下命令,將安裝程式轉換為 Intune 格式:C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s VC_redist.arm64.exe -o C:\Intune\Output\ArmPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s HPInsightsAnalyticsDependencies.msi -o C:\Intune\Output\ArmPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s HPInsightsAnalytics.msi -o C:\Intune\Output\ArmPkgsIntune C:\Tool\IntuneWinAppUtil.exe -c ArmPkgs -s HPInsights.msi -o C:\Intune\Output\ArmPkgsIntune檔案成功轉換後,將會建立以下 intunewin 檔案,並出現在
C:\Intune\Output\ArmPkgsIntune目錄中:VC_redist.arm64.intunewinHPInsightsAnalyticsDependencies.intunewinHPInsightsAnalytics.intunewinHPInsights.intunewin
為 ARM 裝置建立 Intune 應用程式:
使用ArmPkgsIntune資料夾中的 Intune 套件,依下方所列的 第三個應用程式到第六個應用程式章節建立 Intune 應用程式。ARM 裝置的部署指引:
請參閱下方 Intune 中的一般應用程式部署步驟 一節,以部署上述步驟中所建立的 ARM 裝置 Intune 應用程式。
在 Microsoft Intune 中建立應用程式
第一個應用程式:建立 VC++ 可轉散發套件(x86)應用程式
登入 Azure 入口網站。系統會顯示首頁。
前往 Microsoft Intune 管理中心。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取
VC_redist.x86.intunewin。按一下 OK。
在 App Information 頁面上:
在 Publisher 欄位中輸入 Microsoft。
按一下 Next。
在 Program 頁面上:
Install command:
VC_redist.x86.exe /install /quietUninstall command:
VC_redist.x86.exe /uninstall /quietDevice restart behavior:No specific action
保留其他設定為預設值。
在 Requirements 頁面上:
Operating system architecture:
選取 Yes,以指定可安裝此應用程式的系統。
選取 Install on x86 system
選取 Install on x64 system
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 10 1607。
在 Detection Rules 頁面上:
Rules format:Manually Configure Detection Rules
按一下 Add
Rule Type:Registry
Key path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86Detection method:Key Exists
Associated with a 32-bit app on 64-bit clients:Yes
按一下 Next 直到完成。
按一下 Create。
第二個應用程式:建立 VC++ 可轉散發套件(x64)應用程式
注意: 此應用程式僅適用於 64 位元 Microsoft Windows。
登入 Azure 入口網站,並前往 Microsoft Intune。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取
VC_redist.x64.intunewin。按一下 OK。
在 App Information 頁面上:
在 Publisher 欄位中輸入 Microsoft。
按一下 Next。
在 Program 頁面上:
Install command:
VC_redist.x64.exe /install /quietUninstall command:
VC_redist.x64.exe /uninstall /quietDevice restart behavior:No specific action
保留其他設定為預設值。
在 Requirements 頁面上:
Operating system architecture:
選取 Yes,以指定可安裝此應用程式的系統。
選取 Install on x64 system
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 10 1607。
在 Detection Rules 頁面上:
Rules format:Manually Configure Detection Rules
按一下 Add
Rule Type:Registry
Key path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64Detection method:Key Exists
Associated with a 32-bit app on 64-bit clients:No
按一下 Next 直到完成。
按一下 Create。
第三個應用程式:建立 VC++ 可轉散發套件(ARM64)應用程式
注意: 此應用程式僅適用於 64 位元 Microsoft Windows。
登入 Azure 入口網站,然後按一下 Microsoft Intune。
選取 Client Apps,然後按一下 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取
VC_redist.arm64.intunewin。按一下 OK。
在 App Information 頁面上:
a. 在 Publisher 欄位中輸入 Microsoft。
b. 按一下 Next。
在 Program 頁面上:
a. Install command:
VC_redist.arm64.exe /install /quietb. Uninstall command:
VC_redist.arm64.exe /uninstall /quietc. Device restart behavior:No specific action
d. 保留所有其他設定為預設值。
在 Requirements 頁面上:
a. Operating system architecture:ARM64
b. Minimum OS:Windows 11 24H2(或更高版本)
在 Detection Rules 頁面上:
a. Rules format:Manually Configure Detection Rules
b. 按一下 Add
c. Rule Type:Registry
i. Key path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\ARM64ii. Detection method:Key Exists
iii. Associated with a 32-bit app on 64-bit clients:No
按一下 Next 直到完成。
按一下 Create。
第四個應用程式:建立 HP Insights Analytics Client 相依性應用程式
登入 Azure 入口網站,然後按一下 Microsoft Intune。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取
HPInsightsAnalyticsDependencies.intunewin。按一下 OK。
在 App Information 頁面上:
在 Publisher 欄位中輸入 HP Inc.。
按一下 Next。
在 Program 頁面上:
Install command:
msiexec /i "HPInsightsAnalyticsDependencies.msi" /q /norestartDevice restart behavior:No specific action
保留所有其他設定為預設值。
在 Requirements 頁面上:
Operating system architecture:
按一下 Yes,以指定可安裝此應用程式的系統。
選取 Install on x64 system
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 10 1607。
選取 Install on ARM64 system
注意: 僅在目標裝置為 ARM 平台 時才選取此選項。
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 11 24H2。
在 Detection Rules 頁面上:
Rules format:Manually Configure Detection Rules
按一下 Add
Rule Type:MSI
保留所有其他設定為預設值。
按一下 Next 直到完成。
按一下 Create。
注意:此套件無法安裝於非 HP 製造的電腦,包括虛擬機器。
第五個應用程式:建立並指派 HP Insights Analytics 應用程式
登入 Azure 入口網站,然後按一下 Microsoft Intune。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取
HPInsightsAnalytics.intunewin。按一下 OK。
在 App Information 頁面上:
在 Publisher 欄位中輸入 HP Inc.。
按一下 Next。
在 Program 頁面上:
Install command:
msiexec /i HPInsightsAnalytics.msi /qn /l*v ta-log.txtDevice restart behavior:No specific action
保留所有其他設定為預設值。
在 Requirements 頁面上:
Operating system architecture:
選取 Yes,以指定可安裝此應用程式的系統。
選取 Install on x64 system
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 10 1607
選取 Install on ARM64 system
注意: 僅在目標裝置為 ARM 平台 時才選取此選項。
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 11 24H2。
在 Detection Rules 頁面上:
Rules format:Use a custom detection script
Script file:建立
HPInsightsAnalytics-Detection-Script-Intune.ps1,將下列內容加入其中並儲存至本機磁碟,然後上傳HPInsightsAnalytics-Detection-Script-Intune.ps1。
$logPath = "C:\Temp "
$logFile = "$logPath\HPInsightsAnalytics-Detection-Script-Intune.log"
# Ensure log directory exists
if (!(Test-Path $logPath)) {
New-Item -ItemType Directory -Path $logPath -Force | Out-Null
}
function Write-Log {
param (
[string]$message
)
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
"$timestamp - $message" | Out-File -FilePath $logFile -Append -Encoding utf8
}
$serviceName = "HpTouchpointAnalyticsService"
Write-Log "Script started. Checking service: $serviceName"
# Get service via CIM
$service = Get-CimInstance Win32_Service -Filter "Name='$serviceName'" -ErrorAction SilentlyContinue
if ($null -eq $service) {
Write-Log "Service not found."
exit 1
}
Write-Log "Service found. State: $($service.State)"
# Check if service is running
if ($service.State -ne "Running") {
Write-Log "Service is not running."
exit 1
}
# Extract executable path
$exePath = $service.PathName -replace '"',''
Write-Log "Executable path: $exePath"
# Get Program Files path
$programFiles = [Environment]::GetFolderPath("ProgramFiles")
Write-Log "Program Files path: $programFiles"
# Check path condition
if ($exePath -like "$programFiles*") {
Write-Log "Service is installed under Program Files. Detection = SUCCESS"
exit 0
}
else {
Write-Log "Service is NOT under Program Files. Detection = FAILED"
exit 1
}
請確認下列項目皆設定為 No:
在 64 位元用戶端上以 32 位元處理序執行
強制執行指令碼簽章檢查
以無訊息方式執行指令碼
在 Dependencies 頁面上:
按一下 Add。
選取:
VC_redist.x64.intunewin(選取 Intel)HPInsightsAnalyticsDependencies.intunewinVC_redist.arm64.intunewin(選取 ARM64 裝置)
確認 Automatically install 設定為 Yes。
將應用程式指派至目標的 Assignment Groups。
按一下 Next 直到完成。
按一下 Create。
第六個應用程式:建立並指派 HP Insights 應用程式
登入 Azure 入口網站,然後按一下 Microsoft Intune。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取
HPInsights.intunewin。按一下 OK。
在 App Information 頁面上:
在 Publisher 欄位中輸入 HP Inc.。
按一下 Next。
在 Program 頁面上:
若需要系統匣圖示:加入
HIDETRAY=TrueInstall command(無系統匣圖示):
msiexec /i HPInsights.msi CPIN=<Enter-Company-PIN> HIDETRAY=True /qn /l*v tm-log.txt /norestartDevice restart behavior:No specific action
保留所有其他設定為預設值。
在 Requirements 頁面上:
Operating system architecture:
選取 Yes,以指定可安裝此應用程式的系統。
選取 Install on x64 system
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 10 1607
選取 Install on ARM64 system
注意: 僅在目標裝置為 ARM 平台 時才選取此選項。
將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 11 24H2。
指定 Detection rules:
Rules format:Use a custom detection script
Script file:建立
HPInsights-Detection-Script-Intune.ps1,將下列內容加入其中並儲存至本機磁碟,然後上傳HPInsights-Detection-Script-Intune.ps1。
$service = Get-Service -Name "hpLHAgent" -ErrorAction SilentlyContinue if ($null -eq $service) { exit 1 } exit 0請確認下列選項皆選取為 No:
在 64 位元用戶端上以 32 位元處理序執行
強制執行指令碼簽章檢查與以無訊息方式執行指令碼
在 Dependencies 頁面上:
按一下 Add
選取下列項目:
VC_redist.x86.intunewin(選取 Intel 裝置)VC_redist.x64.intunewin(選取 Intel 裝置)VC_redist.arm64.intunewin(選取 ARM64 裝置)
確認 Automatically Install 設定為 Yes。
將應用程式指派至目標的 Assignment Groups。
按一下 Next 直到完成。
按一下 Create。
注意:
HP Insights Analytics Client – 相依性套件無法安裝於非 HP 製造的電腦,包括虛擬機器。
請在步驟 6 中使用實際的公司 PIN 碼。
Intune 中的一般應用程式部署步驟
依照第 1 節和第 2 節逐一開啟已建立的 Intune 應用程式。
在 Assignments 區段中,選取 Edit 選項。
在 Assignments 索引標籤中:
a. 前往 Required 區段,並依部署策略與目標選擇 Add group、Add all users 或 Add all devices。
若需進行無訊息安裝,請在 End user notifications 下按一下 Show all toast notifications。
在 End user notifications 中,選取 Hide all toast notifications,然後按一下 OK。
按一下 Review + save。
在 Review + save 索引標籤中,按一下 Save。
注意:
IT 管理員需根據目標裝置及其作業系統平台,將上述第一至第六個應用程式部署至目標裝置。
重要事項
若客戶或 IT 管理員已強制執行嚴格的 PowerShell 執行原則
(例如 AllSigned、RemoteSigned,或其他受限制的執行原則),
則本文提及的指令碼(HPInsightsAnalytics-Detection-Script-Intune.ps1 和 HPInsights-Detection-Script-Intune.ps1)
必須在部署前進行數位簽署。在此類環境中:
IT 管理員必須使用已核准的程式碼簽署憑證,為提供的 PowerShell 解除安裝指令碼進行簽署。
在 Intune 或 SCCM 中設定應用程式部署時,必須使用已簽署的指令碼。
IT 管理員必須確保對應的程式碼簽署憑證(或其簽發的 CA 憑證)已存在於所有目標裝置上 本機電腦憑證存放區中的 信任的根憑證授權單位 或 信任的發行者。
若未符合上述需求,解除安裝指令碼可能會因系統執行原則而遭到封鎖。
如需解除安裝,請參閱文章 - 使用SCCM或Microsoft Intune解除安裝HP Insights Windows Agent
聯絡我們
如需任何協助,請建立支援案例或來信至 support@wxp.hp.com。