> 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-fleet.md).

# Fleet でデバイス保護をデプロイ

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

## インストール

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

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

* あなたの **PowerShell のインストール コマンド** （ダッシュボードのユーザー グループ セレクターからコピーされたもので、トークン + インストーラーのダウンロードを含みます）

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

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

PowerShell のインストール コマンドを、システム コンテキストで実行されるワンショット スクリプトとして展開します。Fleet は Windows ホスト上で PowerShell スクリプトをローカル SYSTEM アカウントとして実行します。 `fleetd`.

1. Aikido Device Protection のダッシュボードで、対象ユーザーグループ用の PowerShell インストール コマンドをコピーします。
2. コマンドを次の名前の `.ps1` ファイルとして、たとえば `aikido-install.ps1`.
3. Fleet コンソールで、次へ移動します **コントロール** → **スクリプト**.
4. 左上のチームのドロップダウンから対象チームを選択します。
5. クリック **アップロード** そして次を追加します `aikido-install.ps1` ファイル。
6. フリート全体に展開するには、次を実行します: `fleetctl run-script --script-path aikido-install.ps1 --hosts <hostnames>` (またはラベルを使ってすべての Windows ホストを対象にします)。個々のホストの場合は、ホストの詳細ページを開いて次をクリックします **アクション** → **スクリプトを実行**、次に選択します `aikido-install.ps1` に移動し、 **実行**.
7. 各ホストの **アクティビティ** フィードを確認し、スクリプトが正常に終了したことを確認します。
   {% endstep %}

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

Fleet の MDM プロファイル管理を通じて構成プロファイルを配布し、アンインストールをブロックします。

**AppLocker によるアンインストールのブロック**

1. クリック **プロファイルを追加** 再度行い、次の OMA-URI を含む 2 つ目の Windows プロファイルを作成します:
   * **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 テキスト全体をコピーして、ここに貼り付けてください）
2. プロファイルを保存し、Windows ホストに展開します。
   {% endstep %}

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

Fleet の UI にはチーム全体向けの再起動ボタンはありません。Windows の `RebootNow` MDM コマンドを通じて `fleetctl`、または 1 行の PowerShell 再起動スクリプトを配布します。

1. 次を次の名前で保存します `windows-restart-device.xml`:

   ```xml
   <Exec>
     <Item>
       <Target>
         <LocURI>./Device/Vendor/MSFT/Reboot/RebootNow</LocURI>
       </Target>
       <Meta>
         <Format xmlns="syncml:metinf">null</Format>
         <Type>text/plain</Type>
       </Meta>
       <Data></Data>
     </Item>
   </Exec>
   ```
2. 実行 `fleetctl mdm run-command --payload=windows-restart-device.xml --hosts=<host1>,<host2>` 各対象ホストに対して。
3. あるいは、次をアップロードします `aikido-reboot.ps1` を含むスクリプト `Restart-Computer -Force` から **コントロール** → **スクリプト** を対象ホストに対して実行します。

エージェントは次回の起動時に完全に有効化されます。
{% 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-fleet.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.
