> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/device/security/reset-mobile-device-pin.md).

# モバイル デバイスの PIN をリセット

このモバイル デバイスのパスコードをリセット

### 説明

このモバイル デバイスに対して Intune のパスコード リセットをトリガーします。Intune はこれを特定の企業所有デバイスの種類に対してのみサポートし、個人所有またはサポート対象外のデバイスでは拒否します。オプションとして、Microsoft Defender for Endpoint がデバイスを中または高リスクと評価した場合はリセットをスキップできます。

### デバイスがリスクにさらされていない場合のみパスコードをリセットする

次の場合、 *デバイスがリスクにさらされていない場合のみパスコードをリセットする* (`skipIfAtRisk`）が有効な場合、runbook は Intune デバイスが検索されてリセットがトリガーされる前に、Microsoft Defender for Endpoint でデバイスのリスク スコアを確認します。検索では Entra デバイス ID を使用し、これは **Defender の状態を確認** runbook が実行するのと同じクエリです。チェックは既定でオフです。

考えられる結果:

* **リスクの上昇なし** (リスク スコア `なし`, `情報` または `低`）：パスコードは通常どおりリセットされます。
* **リスク スコア `中` または `高`**：runbook は警告とともに停止し、何も変更されません。リスク スコアが高いデバイスがセキュリティ インシデントに関与している可能性があります。パスコードをリセットすると、そのデバイスへのアクセスが許可されたり、調査の妨げになったりするおそれがあります。まずセキュリティ チームと調整してください。それでもパスコードをリセットするには、このオプションを無効にして runbook を実行します。
* **Defender for Endpoint でデバイスが見つかりません**：リスク スコアを判定できません。runbook はこれを記録し、リセットを続行します。モバイル デバイスが Microsoft Defender for Endpoint に表示されるのは、Defender アプリが展開され、オンボードされている場合のみです。そのため、Defender がないデバイスはこのチェックでブロックされません。
* **デバイスは見つかりましたが、リスク スコアがありません** （例: 新しくオンボードされた場合）：runbook はこれを記録し、同様に続行します。
* **Defender クエリに失敗**：runbook はパスコードをリセットせずに停止するため、一時的な API 問題で保護が回避されることはありません。

#### 既定でチェックを有効にする

すべての要求でチェックを強制するには、パラメーターを事前設定して非表示にし、ポータルからオフにできないようにします。

この JSON 構成は次のとおりです:

```json
"rjgit-device_security_reset-mobile-device-pin": {
    "parameters": {
        "skipIfAtRisk": {
            "Default": true,
            "Hide": true
        }
    }
}
```

### 場所

デバイス → セキュリティ → モバイル デバイス PIN のリセット

**完全な Runbook 名**

rjgit-device\_security\_reset-mobile-device-pin

### 詳細

| プロパティ    | 値                                   |
| -------- | ----------------------------------- |
| バージョン    | 1.1.0                               |
| 必須モジュール  | RealmJoin.RunbookHelper (>= 0.8.10) |
| スケジュール可能 | いいえ                                 |

### アクセス許可

#### アプリケーションのアクセス許可

* **型**: Microsoft Graph
  * DeviceManagementManagedDevices.Read.All
    * *リセット前に Intune デバイスを検索して、その所有タイプを確認します*
  * DeviceManagementManagedDevices.PrivilegedOperations.All
    * *デバイスに対して特権付き resetPasscode アクションを実行します*
* **型**: WindowsDefenderATP
  * Machine.Read.All *(オプション — 機能: Defender リスク チェック)*
    * *skipIfAtRisk の事前チェックでデバイスの Defender リスク スコアを読み取ります*

### パラメーター

#### DeviceId

この runbook が対象とするデバイスの Entra ID デバイス ID。ポータルによって、選択したデバイスから設定されます。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | true                     |
| 既定値      |                          |
| 型        | 文字列                      |
| ポータルで非表示 | はい（runbook のカスタマイズで事前設定） |

#### skipIfAtRisk

Microsoft Defender for Endpoint がデバイスを中または高リスクと評価した場合はリセットをスキップするため、リセットによって調査中のデバイスが開かれてしまうことはありません。Defender に認識されていないデバイスはブロックされません。

| プロパティ    | 値                              |
| -------- | ------------------------------ |
| 必須       | false                          |
| 既定値      | False                          |
| 型        | ブール値                           |
| ポータルの表示名 | デバイスがリスクにさらされていない場合のみリセットしますか？ |

**ポータル オプション**

| ポータル オプション                           | 値     |
| ------------------------------------ | ----- |
| Defender のリスク スコアが中または高でない場合のみリセットする | true  |
| Defender のリスク スコアに関係なくリセットする         | false |

[Runbook リファレンスの概要に戻る](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# 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://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/device/security/reset-mobile-device-pin.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.
