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

# Primo で Device Protection を導入

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

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

## インストール

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

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

* お客様の **PowerShell インストール コマンド** （ダッシュボードのユーザー グループ セレクターからコピーします。トークンとインストーラーのダウンロードが含まれます）

見つからない場合は、次に戻ってください: [Aikido Device Protection ダッシュボード](https://app.aikido.dev/endpoint-protection/devices)、次をクリックします: **Connect Device**.
{% endstep %}

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

Primo は Controls ライブラリを介して Windows ホスト上で PowerShell スクリプトを実行します。ダッシュボードのコマンドを `.ps1` スクリプトとしてアップロードし、対象デバイスに対して実行します。

1. Primo 管理コンソールで、次へ移動します。 **MDM** → **コントロール** → **スクリプト**.
2. Aikido Device Protection ダッシュボードから PowerShell のインストールコマンドをコピーします。これを `.ps1` ファイル（例： `aikido-install.ps1`）、次に **スクリプトを追加**をクリックし、ファイルをアップロードして、名前を付けます（例：「Aikido Device Protection install」）。
3. Aikido Device Protection を受け取る対象のチームまたはデバイスグループにスクリプトを割り当てます。
4. 移動先 **ホスト**で対象の Windows デバイスに絞り込み、それらを選択し、 **アクション** メニューを開いて、 **スクリプトを実行**を選択します。Aikido のインストールスクリプトを選択します。
5. 実行が完了するまで待ちます。スクリプト実行結果を開き、続行する前に対象デバイスがすべて成功を報告していることを確認します。
   {% endstep %}

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

エンドユーザーは Aikido サービスを停止したり、Aikido Device Protection アプリをアンインストールしたりできないようにする必要があります。

**Aikido Device Protection のアンインストールをブロックする**

AppLocker ポリシーをダウンロードして適用する PowerShell スクリプトを実行します。

1. Primo 管理コンソールで、次へ移動します。 **MDM** → **コントロール** → **スクリプト**.
2. クリック **スクリプトを追加**に名前を付け（例：「Aikido uninstall block」）、次を貼り付けます：

```powershell
$tmp = "$env:TEMP\aikido-applocker.xml"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/AikidoSec/safechain-internals/refs/heads/main/docs/aikido-applocker-deny-mdm.xml" -OutFile $tmp
Set-AppLockerPolicy -XmlPolicy $tmp -Merge
Remove-Item $tmp -Force
```

3. 対象の Windows デバイスグループに適用します。
   {% endstep %}

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

インストールスクリプトに再起動手順を追加します。Aikido のインストールスクリプトを **MDM** → **コントロール** → **スクリプト** で開く（または後続スクリプトを追加する）して、次を末尾に追加します `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-primo.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.
