> 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 で Device Protection を展開する

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

## インストール

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

開始前に、Aikido Device Protection ダッシュボードから以下を用意していることを確認してください：

* お使いの **PowerShell インストールコマンド** （ダッシュボードのユーザーグループ選択ツールからコピーします。トークンとインストーラーのダウンロードが含まれます）

見つからない場合は、 [Aikido Device Protection ダッシュボード](https://app.aikido.dev/endpoint-protection/devices) に移動し、 **Connect Device**.
{% endstep %}

{% step %}
**Run the install command on managed devices**

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

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

{% step %}
**Apply the lockdown policy**

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 %}
**Reboot devices after installation**

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` から **コントロール** → **Scripts** そしてそれを対象ホストに対して実行します。

The agent fully activates on the next boot.
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
