> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XBOX Manager：管理主機自動化

> XBOX Manager：管理主機自動化

XBOX Manager 中的自動化索引標籤 (如下列螢幕擷取畫面所示) 裝載用於自動指令碼 (以及 XBOX One X 開發套件與前面板指令碼) 的 [XBOX Device Portal (XBOX 上的 Windows Device Portal)](/zh-TW/tools/tools-console/wdp/wdp) UI。連線至具有前面板顯示器的開發套件時，可在自動化頁面上使用該顯示器進行遠端測試與控制。只有在主機上啟用 [XBOX Device Portal](/zh-TW/tools/tools-console/wdp/wdp) 時，才能使用自動化索引標籤。

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=080245783f6f87b827ad7c1e44b73d1b" alt="XBOX Manager 中自動化索引標籤的螢幕擷取畫面" width="833" height="948" data-path="images/gdk/tools/xbom_automation.png" />

<a id="ID4EDB" />

## 建立新指令碼

1. 選取 **New script** (如下所示)。<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_new_script.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=dfd4b7b62383fd3f24b52f8bbc34cd2b" alt="New script 按鈕的螢幕擷取畫面" width="97" height="31" data-path="images/gdk/tools/xbom_automation_new_script.png" />

2. 輸入新的指令碼名稱。預設名稱為 **New Script**。

3. 將新動作新增至指令碼。選取 **New action** (如下所示)。

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_new_action.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=82ad621ec45cda33d97eb713f75b6020" alt="New action 按鈕的螢幕擷取畫面" width="98" height="30" data-path="images/gdk/tools/xbom_automation_new_action.png" />

1. 從出現的 **New action** 視窗 (如下所示) 選取指令碼的動作，然後選取 **Next**。

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_new_action_window.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=2ace9e85bab7f2349c6d729869c38979" alt="New action 視窗的螢幕擷取畫面" width="465" height="373" data-path="images/gdk/tools/xbom_automation_new_action_window.png" />

1. 設定動作的任何參數 (如下所示)。

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_new_action_parameters.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=fd81a918cc6cd33dc3921cd8eb57ceaf" alt="新動作參數的螢幕擷取畫面" width="464" height="182" data-path="images/gdk/tools/xbom_automation_new_action_parameters.png" />

1. 重複步驟 3 到 5，將更多動作新增至指令碼。
2. 您也可以選擇將指令碼設定為在啟動時執行，請選取 **Apply as boot script** (如下所示)。

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_apply_boot_script.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=7c7c520fcd4d1f9166a2cb593c0b6b8e" alt="Apply as boot script 按鈕的螢幕擷取畫面" width="126" height="30" data-path="images/gdk/tools/xbom_automation_apply_boot_script.png" />

1. 您也可以選擇將指令碼套用至其中一個前面板按鈕，請按一下 **Add for front panel buttons** (如下所示)，然後在 **System mappings for front panel buttons** 區段中選取指令碼 (如下所示)。

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_add_for_front_panel_buttons.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=d141efc3b04b95bac6fe798c619d7aa6" alt="Add for front panel buttons 按鈕的螢幕擷取畫面" width="165" height="31" data-path="images/gdk/tools/xbom_automation_add_for_front_panel_buttons.png" />

<img src="https://mintcdn.com/microsoft-4404708b/NsRUQ49ZRpXgoZ9R/images/gdk/tools/xbom_automation_mappings.png?fit=max&auto=format&n=NsRUQ49ZRpXgoZ9R&q=85&s=50e1a51df00dd71e293e944886db992f" alt="System mappings for front panel buttons 區段的螢幕擷取畫面" width="463" height="206" data-path="images/gdk/tools/xbom_automation_mappings.png" />

<a id="ID4EJD" />


## Related topics

- [用於管理開發主機的 XBOX Manager 工具](/zh-TW/tools/tools-console/xbom/index.md)
- [XBOX Manager：管理主機設定](/zh-TW/tools/tools-console/xbom/manager-tool-console-settings.md)
- [XBOX Manager：管理主機與群組](/zh-TW/tools/tools-console/xbom/manager-tool-groups.md)
- [XBOX Manager](/zh-TW/tools/tools-console/xbom/xbom.md)
- [指令碼撰寫工具](/zh-TW/tools/tools-console/wdp/script-authoring-tool.md)
