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

# NinjaOne で Device Protection を導入

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

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

## インストール

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

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

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

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

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

1. NinjaOne 管理ポータルで、 **管理** → **ライブラリ** → **自動化**.
2. クリック **自動化を追加** → **新しいスクリプトを追加**.
3. スクリプトを構成します:
   * **名前：** Aikido Device Protection インストーラ
   * **言語:** PowerShell
   * **オペレーティングシステム：** Windows
   * **アーキテクチャ:** すべて
   * **実行ユーザー:** システム
4. Aikido Device Protection ダッシュボードの PowerShell インストールコマンドをエディターに貼り付けて、クリックします **保存**.
5. 左側のナビゲーションで、次へ移動します **デバイス**その後、OS でフィルターして Windows デバイスのみを表示します。
6. 対象デバイスを選択し、次にクリックします **実行** ツールバーで、次を選択します **スクリプト**をクリックして、 **Aikido Device Protection インストーラ**.
7. 確認 **実行ユーザー** が **システム**、次にクリック **実行**.

{% hint style="info" %}
このスクリプトは、次の項目でスケジュール設定することもできます **ポリシー** → **スケジュール済み自動化** 後からオンラインになるデバイスも対象にできます。
{% endhint %}
{% endstep %}

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

NinjaOne のポリシー条件を使用して、Aikido サービスを改ざんから保護します。アンインストールを防止するには、NinjaOne の外部で AppLocker を使用してください。

1. NinjaOne 管理ポータルで、 **管理** → **ポリシー**.
2. 対象デバイスに割り当てられている Windows ポリシーを選択（または作成）します。
3. を開き、 **条件** タブを開き、 **条件を追加**.
4. 選択 **Windows サービス（Windows）** を選択し、次を構成します:
   * **サービス:** `EndpointProtection`
   * **状態:** 停止
5. 条件の **自動化**、再起動するスクリプト アクションを追加します `EndpointProtection` （たとえば、PowerShell の 1 行コマンド `Start-Service EndpointProtection` に設定され **実行ユーザー: システム**).
6. ポリシーを保存します。

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

PowerShell を介して AppLocker ポリシーを適用する NinjaOne 自動化スクリプトを作成します:

1. NinjaOne 管理ポータルで、 **管理** → **ライブラリ** → **自動化** に移動し、 **自動化を追加** → **新しいスクリプトを追加**.
2. 設定 **言語** を次に設定します: **PowerShell**, **オペレーティングシステム** を次に設定します: **Windows**、そして **次のユーザーとして実行** を次に設定します: **システム**.
3. 次のスクリプトを貼り付けて、クリックします **保存**:

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

4. 次の場所から、対象の Windows デバイスに対してスクリプトを実行します **デバイス** タブ。
   {% endstep %}

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

1. NinjaOne 管理ポータルで、次を開きます **デバイス** を開き、対象の Windows デバイスを選択します。
2. クリック **実行** ツールバーで、次を選択します **再起動**をクリックし、 **後で** で再起動をスケジュールするか、 **今すぐ** 即時再起動します。
3. 日付、時刻、タイムゾーンを選択し、次にクリックします **設定**.

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