此安裝類型的重點對象為希望透過 Microsoft Intune 等雲端工具 部署與管理 HP Insights 應用程式,同時使用 Setup 提供的整合式 Windows 可執行檔的使用者。
本文說明如何使用 Microsoft Intune,透過 單一安裝程式(Single Installer)方法 來部署 HP Insights Agent。
請依照以下步驟,使用單一安裝程式部署 HP Insights Windows Application(亦稱為 Windows Agent),並透過 Microsoft Intune 進行裝置註冊:
下載 HP Insights Windows Agent
使用 Microsoft Win32 Content Prep Tool 轉換 Windows Agent
建立 HP Insights 裝置應用程式
驗證安裝
同步裝置
在開始執行上述步驟前,請先將 UPN 尾碼 提供給您的 HP Service Expert 或 業務夥伴。
此外,您還需要從 HP Workforce Experience Platform 入口網站 取得 全公司通用的 PIN 碼。
如需更多資訊,請參閱文章:取得使用者主體名稱(User Principal Name)網域尾碼
Downloading Windows Agent Using the Single Installer (.exe) Method
To download HP Insights Windows Application:
Download the HP Insights Windows Application from https://workforceexperience.hp.com/software.
Refer to the article - 使用 setup.exe 安裝 HP Insights Windows 應用程式.
使用單一安裝程式(.exe)方法下載 Windows Agent
若要下載 HP Insights Windows Application:
從以下連結下載 HP Insights Windows Application: https://workforceexperience.hp.com/software
從 此處 下載 HP Insights 應用程式安裝 PowerShell 指令碼檔案。
解壓縮下載的
HP-Insights-Installation-Scripts.zip檔案。
該檔案包含:wxp-insights-detection-and-remediation-script.ps1wxp-insights-installer-script.ps1
開啟兩個指令碼,將 ENTER_COMPANY_PIN 取代為實際的公司 PIN,然後 儲存。
若要為 HP Insights 裝置軟體設定 Proxy 或更新設定,請建立批次指令碼以新增所需的登錄機碼,並在 Installation Program 中指定該批次指令碼。預設情況下,HP Insights 會在自動更新後進行註冊。若要在 不啟用自動更新 的情況下完成註冊,請在 wxp-insights-installer-script.ps1 的第 15 行加入 UPDATEBEFOREENROLL=0,如下所示:
$arguments = "/silent HIDETRAY=False CPIN=$PIN_VALUE UPDATEBEFOREENROLL=0"使用 Microsoft Win32 Content Prep Tool 將 HP Insights Windows Application(單一安裝程式 (.exe))轉換為 Intune Win32 格式
若要使用 Microsoft Win32 Content Prep Tool 將 HP Insights Windows Application(Setup) 轉換為 intunewin 格式,請依照下列步驟操作:
從以下連結下載 Win32 Content Prep Tool:
https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool將
IntuneWinAppUtil.exe儲存至本機資料夾C:\Tool\。為了建立兩個 Intune 套件(一個用於 Intel,另一個用於 ARM),請將以下下載的內容分別放入兩個本機資料夾中:
a. 本機資料夾 1 => IntelPkg(C:\Intune\IntelPkg)
setup.exehp-insights-detection-and-remediation-script-intune.ps1將
wxp-insights-installer-script.ps1重新命名為wxp-insights-installer-intel.ps1
b. 本機資料夾 2 => ArmPkg(C:\Intune\ArmPkg)
setuparm.exehp-insights-detection-and-remediation-script-intune.ps1將
wxp-insights-installer-script.ps1重新命名為hp-insights-installer-arm.ps1
以系統管理員身分開啟命令提示字元(Admin command prompt)。
瀏覽至
C:\Intune資料夾,並執行以下命令將安裝程式轉換為 intunewin 格式:a. 請確保輸入與輸出資料夾名稱不同,以避免安裝錯誤。請執行以下兩個命令以建立 Intune 套件:
i. 選項 A – Intel
C:\Tool\IntuneWinAppUtil.exe -c IntelPkg -s hp-insights-installer-intel.ps1 -o C:\Intune\Outputii. 選項 B – ARM
C:\Tool\IntuneWinAppUtil.exe -c ArmPkg -s hp-insights-installer-arm.ps1 -o C:\Intune\Output完成轉換後,將會產生以下 intunewin 檔案:
wxp-insights-installer-intel.intunewin與
wxp-insights-installer-arm.intunewin
注意:
僅依照 選項 A,即可在 Intel 裝置上部署 HP Insights 單一安裝程式(.exe)。
僅依照 選項 B,即可在 ARM 裝置上部署 HP Insights 單一安裝程式(.exe)。
同時依照 選項 A 與選項 B,即可在 Intel 與 ARM 裝置上部署 HP Insights 單一安裝程式(.exe)。
選項 A – 為 Intel 裝置在 Intune 中建立應用程式
若要建立新的 Intune 應用程式封裝以安裝 HP Insights Windows Application:
登入 Azure 入口網站。系統會顯示首頁。
前往 Microsoft Intune 管理中心。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取先前已轉換為 intunewin 格式的 HP Insights 安裝程式指令碼
(例如:wxp-insights-installer-intel.intunewin)。按一下 OK。
在 App Information 頁面上,輸入以下內容,然後按一下 Next:
Name:HP Insights Windows Application
Publisher:HP Inc.
Version:5.xx.xxx(請以您要部署之 setup 檔案的實際版本取代)
在 Program 頁面中,於 Install command 欄位輸入:
powershell.exe -ExecutionPolicy Bypass -File .\hp-insights-installer-script.ps1將 Uninstall command 設定為 None。
需解除安裝,請參閱文章 - 使用SCCM或Microsoft Intune解除安裝HP Insights Windows Agent
按一下 Review + save。
在 Requirements 索引標籤中:
a. 在 Check operating system architecture 下:
i. 選取 Yes,以指定可安裝此應用程式的系統。
ii. 選取 Install on x64 system。
iii. 將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 10 1607。
按一下 Review + save。
在 Detection rules 索引標籤中,選取 Use a custom detection script > Rules Format。
開啟先前下載的指令碼檔案:
hp-insights-detection-and-remediation-script-intune.ps1按一下 Review + save。
在 Review + save 索引標籤中。
按一下 Save。
選項 B – 為 ARM 裝置在 Intune 中建立應用程式
若要建立新的 Intune 應用程式封裝以安裝 HP Insights Windows Application:
登入 Azure 入口網站。系統會顯示首頁。
前往 Microsoft Intune 管理中心。
選取 Client Apps,然後前往 Apps。
按一下 Add,並選取 Windows App (Win32)。
按一下 Select app package file,然後選取先前已轉換為 intunewin 格式的 HP Insights Installer Script
(例如:wxp-insights-installer-arm.intunewin)。按一下 OK。
在 App Information 頁面上,輸入以下內容,然後按一下 Next:
Name:HP Insights Windows Application
Publisher:HP Inc.
Version:5.xx.xxx(請以您要部署之 setup 檔案的實際版本取代)
在 Program 頁面中,於 Install command 欄位輸入:
powershell.exe -ExecutionPolicy Bypass -File .\hp-insights-installer-script.ps1將 Uninstall command 設定為 None。
如需解除安裝,請參閱文章 - 使用SCCM或Microsoft Intune解除安裝HP Insights Windows Agent
按一下 Review + save。
在 Requirements 索引標籤中,於 Check operating system architecture:
a. 選取 Yes,以指定可安裝此應用程式的系統。
b. 選取 Install on ARM64 system。
c. 將 Minimum operating system 設定為符合目標環境的版本,例如:Windows 11 24H2。
按一下 Review + save。
在 Detection rules 索引標籤中,將 Rules format 設定為 Use a custom detection script。
開啟先前下載的指令碼檔案:
hp-insights-detection-and-remediation-script-intune.ps1按一下 Review + save。
在 Review + save 索引標籤中,按一下 Save。
Intune 中的一般應用程式部署步驟
依序開啟在 選項 A 與 選項 B 中建立的 Intune 應用程式。於 Assignments 區段中,按一下 Edit。
在 Assignments 區段中,前往 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。
驗證安裝
亦可在目標電腦上驗證 HP Insights Windows Application 是否成功安裝。若要在目標電腦上驗證部署結果,請執行以下步驟:
在使用者的電腦上,開啟 控制台 中的 程式和功能。
應可看到 HP Insights 與 HP Insights Analytics Client 已安裝。若在部署期間未隱藏系統匣圖示,請按一下 HP Insights 系統匣圖示,然後選取 Status。
裝置註冊狀態應顯示為 Enrolled。
同步裝置
在 Microsoft Intune 中,開啟 設定 應用程式。
按一下 帳戶。
選取 存取公司或學校。
按一下您的網域名稱,然後按一下 Info。
在頁面底部按一下 Sync。
重要事項
若客戶或 IT 管理員已強制執行嚴格的 PowerShell 執行原則(例如 AllSigned、RemoteSigned,或其他受限制的執行原則),則提供的 PowerShell 指令碼 hp-insights-detection-and-remediation-script-intune.ps1 與 wxp-insights-installer-script.ps1 必須在部署前進行數位簽署。在此類環境中:
IT 管理員必須使用已核准的程式碼簽署憑證,為提供的 PowerShell 指令碼進行簽署。
在 Intune 或 SCCM 中設定應用程式部署時,必須使用已簽署的指令碼。IT 管理員必須確保對應的程式碼簽署憑證(或其簽發的 CA 憑證)
已存在於所有目標裝置上 本機電腦 憑證存放區中的
信任的根憑證授權單位 或 信任的發行者。若未符合上述需求,解除安裝指令碼可能會因系統執行原則而遭到封鎖。
聯絡我們
如需任何協助,請建立支援案例或來信至 support@wxp.hp.com。