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.

MacOS:使用公司PIN手動註冊裝置

Prev Next

簡介

本文提供了使用公司PIN為Mac OS裝置註冊和部署 WXP Insights代理程式(Workforce Experience Platform (WXP) 的核心元件)的指導:

  1. Download WXP Insights Software 頁面下載適用於macOS的最新WXP Insights代理程式。

  2. 選擇根據偏好設定配置Mac Script Editor應用程式的指令碼。

  3. 從WXP取得公司PIN: a. 從WXP的左側選單中,按一下設定 > 偏好設定。將顯示偏好設定索引標籤。 b. 在偏好設定索引標籤中,向下捲動至公司PIN區段並複製該PIN。

  4. 為macOS配置代理程式。

注意:macOS裝置不支援在HP Workforce Experience Platform中註冊的代理程式配置。

選取腳本以設定 Mac 腳本編輯器應用程式

下載最新的 WXP Insights macOS 應用程式後,請複製並儲存必要的腳本,以根據喜好設定來設定腳本編輯器應用程式。編輯腳本時,請確認將「PIN=」變更為公司 PIN。

  1. Enrollment.sh:顯示選單列,並在無需使用者互動的情況下完成裝置註冊(請更新腳本中的 CPIN)

  2. Enrollment_Tray.sh:隱藏選單列,並在無需使用者互動的情況下完成裝置註冊(請更新腳本中的 CPIN)

  3. ShowTray.sh:顯示選單列;適用於已在 WXP Insights Agent 中完成註冊並自動升級至 macOS 版本 2.23.6(及更新版本)的裝置

  4. HideTray.sh:隱藏選單列;適用於已在 WXP Insights Agent 中完成註冊並自動升級至 macOS 版本 2.23.6(及更新版本)的裝置

若裝置已完成註冊,請參閱下方的已註冊裝置章節。

Enrollment.sh 腳本

#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
PIN=#########
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo"Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"PIN\":\"$PIN\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully stored Data at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store Data"
exit 1
fi
exit 1

Enrollment_Tray.sh 腳本

#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
PIN=#########
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo "Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"PIN\":\"$PIN\",\"HideTray\":\"true\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully stored Data at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store Data"
exit 1
fi
exit 1

ShowTray.sh 腳本  

#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo "Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"HideTray\":\"false\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully create enrolment json at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store PIN"
exit 1
fi
exit 1

HideTray.sh 腳本  

#!/bin/bash
APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent
if [ -d $APPLICATION_SUPPORT_DIRECTORY ]
then
echo "Directory Exists"
else
echo "Directory Does not exist, creating directory"
mkdir "$APPLICATION_SUPPORT_DIRECTORY"
fi
echo "{\"HideTray\":\"true\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ]
then
echo "Successfully create enrolment json at
$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json"
exit 0
else
echo "Unable to store PIN"
exit 1
fi
exit 1

取得公司PIN

若要取得公司PIN:

  1. 登入WXP。將顯示首頁

  2. 從WXP的左側選單中,選擇設定 > 偏好設定。將顯示偏好設定索引標籤。

  3. 偏好設定索引標籤中,向下捲動至公司PIN區段並複製該PIN。

對於HP合作夥伴:接受合作夥伴邀請後,登入WXP。選擇客戶 > 公司 > 公司詳細資訊 > 偏好設定

未註冊的裝置

  1. 下載 WXP Insights macOS 應用程式後,開啟腳本編輯器應用程式,並複製上述其中一個腳本。請確認將 PIN 替換為實際的公司 PIN,然後執行所選腳本。

    • 所選腳本必須在安裝 macOS 應用程式之前執行

  2. 執行所選腳本後,開啟 HPInsightsInstaller.pkg 以安裝 WXP Insights macOS Agent。安裝完成後,註冊將自動開始。

  3. 在狀態列上,選取 HP 圖示,然後選取註冊此裝置

  4. 在平台視窗中,按一下註冊以繼續。

  5. 若裝置為公司所有,請選取公司;若為個人所有,請選取個人,然後按一下下一步

    • 若選擇個人,部分功能可能會停用。

  6. 輸入公司 PIN,然後按一下下一步

  7. 當註冊確認視窗出現時,對於公司所有的電腦,請按一下以授權。對於個人所有的電腦,請根據公司政策按一下

    • 確認視窗出現後,若電腦成功完成註冊,將顯示裝置已註冊。請注意,電腦在註冊期間必須連接至網際網路。

    • 按一下詳細資料以取得有關註冊的更多資訊。

已註冊的裝置

若使用者已安裝 WXP Insights macOS Agent,並想切換隱藏選單列應用程式,使用者可在主控台中執行 ShowTray.shHideTray.sh 腳本。

  1. 在腳本編輯器應用程式中,輸入 sudo bash ./ShowTray.shsudo bash ./HideTray.sh

  2. 輸入所需腳本後,系統將提示使用者輸入 PIN 以進行 PIV 驗證。

輸入 PIN 後,裝置將成功執行腳本,以顯示或隱藏選單列。

聯絡我們

如需任何協助,請建立支援案例或來信至 support@wxp.hp.com