> 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 でデバイス保護を展開する

必要な権限を設定したうえで、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)、クリックし **デバイスを接続**.
{% 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.
