> 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 を使用し、これは runbook が **Defender の状態を確認** 実行するクエリです。チェックは既定でオフです。

考えられる結果:

* **高リスクなし** (リスク スコア `なし`, `情報` または `低`）：パスコードは通常どおりリセットされます。
* **リスク スコア `中` または `高`**：runbook は、何も変更される前に警告付きで停止します。リスク スコアが高いデバイスはセキュリティ インシデントに関与している可能性があります。パスコードをリセットすると、デバイスへのアクセスが可能になったり、調査の妨げになったりするおそれがあります。まずはセキュリティ チームに確認してください。どうしてもパスコードをリセットする場合は、オプションを無効にして runbook を実行してください。
* **Defender for Endpoint でデバイスが見つかりません**：リスク スコアを判定できません。runbook はこれを記録し、リセットを続行します。モバイル デバイスは、Defender アプリがそれらに展開され、オンボードされている場合にのみ Microsoft Defender for Endpoint に表示されるため、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 リファレンスの概要に戻る](/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.
