> 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) に移動し、 **Connect Device**.
{% 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`
   * **値（String）:** の内容を貼り付けます [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.
