> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/aikido-device-protection/deploying-aikido-endpoint/device-protection-mdm-guides/windows/deploy-aikido-endpoint-with-hexnode.md).

# Hexnode で Device Protection を展開

必要な権限が設定された状態で、Hexnode UEM を使用して管理対象の Windows フリート全体に Aikido Device Protection を展開します。

{% hint style="info" %}
開始する前に、すべてのデバイスを Hexnode の Windows 管理に登録しておく必要があります。
{% endhint %}

## インストール

{% stepper %}
{% step %}
**必要なもの**

開始する前に、Aikido Device Protection ダッシュボードから次のものを用意してください。

* あなたの **PowerShell のインストール コマンド** （ダッシュボードのユーザーグループセレクターからコピー）

見当たらない場合は、戻って [Aikido Device Protection ダッシュボード](https://app.aikido.dev/endpoint-protection/devices)、 **デバイスを接続**.
{% endstep %}

{% step %}
**管理対象デバイスでインストール コマンドを実行する**

Hexnode の Execute Custom Script アクションを通じて、Aikido ダッシュボードの PowerShell コマンドを Windows フリートにプッシュします。

1. Hexnode ポータルで、 **管理** → **デバイス** に移動し、対象の Windows デバイスを選択するか、デバイスグループを開きます。
2. 開く **アクション** → **その他** → **カスタムスクリプトを実行**.
3. 選択します **Windows** をプラットフォームとして。
4. 選択 **PowerShell スクリプト** をスクリプトの種類として。
5. Aikido Device Protection ダッシュボードからコピーしたインストールコマンドをスクリプト本文に貼り付けます。
6. タイムアウトを少なくとも **30 分** に設定して、インストーラーのダウンロード時間を確保します。
7. クリック **実行** してコマンドをプッシュします。Hexnode は既定で、Windows 上でカスタムスクリプトをデバイス（SYSTEM）コンテキストで実行します。これは Aikido のインストーラーに必要な設定です。

各デバイスの実行状況は、 **管理** → **アクション履歴**.
{% endstep %}

{% step %}
**ロックダウン ポリシーを適用する**

Aikido Device Protection アプリのアンインストールをブロックするには、カスタム設定ポリシーを使用します。

1. Hexnode ポータルで、 **ポリシー** し、Windows 用の新しい空のポリシーを作成します。
2. の下で、 **Windows** タブで、 **構成** に移動し、 **設定** の横にある **カスタム設定を展開**.
3. クリック **ペイロードを追加** を選択し、次の内容を入力します：
   * **名前を付け**: `Aikido のアンインストールをブロック`
   * **OMA-URI**: `./Vendor/MSFT/AppLocker/ApplicationLaunchRestrictions/Aikido/MSI/Policy`
   * **データ型**: `文字列`
   * **値**：以下の内容を貼り付けます [aikido-applocker-deny-mdm.xml](https://raw.githubusercontent.com/AikidoSec/safechain-internals/refs/heads/main/docs/aikido-applocker-deny-mdm.xml) （リンクを開き、XML テキスト全体をコピーして、ここに貼り付けてください）
4. 移動先 **ポリシーの対象**で、ポリシーを同じ対象デバイスまたはデバイスグループに割り当てて保存します。

2層目として、Aikido Device Protection のインストーラーを **必須アプリ** に追加し、削除された場合でも Hexnode が自動的に再インストールするようにします：

1. Hexnode ポータルで、 **ポリシー** し、同じ Windows ポリシーを編集します。
2. の下で、 **Windows** タブで、 **アプリ管理** に移動し、 **設定** の横にある **必須アプリ**.
3. Aikido Device Protection アプリ（Hexnode の企業向けアプリカタログにアップロード済み）を追加して保存します。

{% hint style="warning" %}
Aikido Device Protection サービスは、インストーラーによって OS レベルで強化され、ユーザーによる改ざんに耐えられるようになっています。サービス保護のために追加の Hexnode ポリシーは不要です。
{% endhint %}
{% endstep %}

{% step %}
**インストール後にデバイスを再起動する**

1. Hexnode ポータルで、 **管理** → **デバイス** に移動し、対象の Windows デバイスを選択するか、デバイスグループを開きます。
2. 選択 **アクション** → **デバイス制御** → **デバイスを再起動**.
3. クリック **再起動** 確認ダイアログで

エージェントは次回の起動時に完全に有効化されます。
{% endstep %}
{% endstepper %}

## トラブルシューティング

| 問題                           | 修復                                                                                                    |
| ---------------------------- | ----------------------------------------------------------------------------------------------------- |
| スクリプト実行後、デバイスがダッシュボードに表示されない | デバイスを再起動してください。エージェントは次回の起動時に完全に登録されます                                                                |
| MDM コンソールでスクリプトがエラーで終了する     | テスト用ホストで SYSTEM としてスクリプトを手動実行し、完全なエラーを確認してください。デバイスがインストーラーをダウンロードするためのインターネット接続を持っていることを確認してください     |
| エージェント サービスが実行されていない         | デバイスを再起動してください。サービスがまだ存在しない場合は、インストール スクリプトを再実行してください                                                 |
| スクリプトが実行ポリシーによってブロックされている    | MDM 経由で実行されるスクリプトは SYSTEM として実行され、ユーザーレベルの実行ポリシー制限を回避します。MDM がスクリプトの実行を制限する追加のポリシーを適用していないことを確認してください |
| インストール後、デバイスが非アクティブとして表示される  | エージェントが完全に有効になるには再起動が必要です。再起動後に確認してください                                                               |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/aikido-device-protection/deploying-aikido-endpoint/device-protection-mdm-guides/windows/deploy-aikido-endpoint-with-hexnode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
