# デバイスを有効化または無効化

### 説明

この runbook は、指定されたデバイス ID に基づいて、Entra ID (Azure AD) 内の Windows デバイス オブジェクトを有効化または無効化します。侵害されたデバイスや紛失したデバイスからのサインインを一時的にブロックする場合、または修復後にデバイスを再度有効にする場合に使用します。

### 場所

デバイス → セキュリティ → デバイスを有効化または無効化

**ランブックの完全名**

rjgit-device\_security\_enable-or-disable-device

### アクセス許可

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

* **種類**: Microsoft Graph
  * Device.Read.All

#### RBAC ロール

* クラウド デバイス管理者

### パラメーター

#### DeviceId

対象デバイスのデバイス ID。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | true |
| 既定値   |      |
| 種類    | 文字列  |

#### 有効化

実行するアクションとして、「デバイスを無効化しますか?」（最終値: false）または「デバイスを再度有効化しますか?」（最終値: true）を選択できます。false に設定すると、runbook は Entra ID (Azure AD) でデバイスを無効化します。true に設定すると、runbook は Entra ID (Azure AD) でデバイスを再度有効化します。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | False   |
| 種類    | Boolean |

[ランブック リファレンスの概要に戻る](/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# Agent Instructions: 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:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/device/security/enable-or-disable-device.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
