# デバイスを段階的に廃止

### 説明

Windows デバイスを削除/段階的廃止します。デバイスをワイプするかどうか、および/または Intune と AutoPilot から削除するかどうかを選択できます。

### 場所

デバイス → 全般 → Outphase Device

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

rjgit-device\_general\_outphase-device

### アクセス許可

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

* **種類**: Microsoft Graph
  * DeviceManagementManagedDevices.PrivilegedOperations.All
  * DeviceManagementManagedDevices.ReadWrite.All
  * DeviceManagementServiceConfig.ReadWrite.All
  * Device.Read.All

#### RBAC ロール

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

### パラメーター

#### DeviceId

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

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

#### intuneAction

実行する Intune のアクション（ワイプ、削除、またはなし）を決定します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 2     |
| 種類    | Int32 |

#### aadAction

実行する Entra ID (Azure AD) のアクション（削除、無効化、またはなし）を決定します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 2     |
| 種類    | Int32 |

#### wipeDevice

true に設定すると、Intune でワイプ アクションがトリガーされます。

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

#### removeIntuneDevice

true に設定すると、Intune デバイス オブジェクトを削除します。

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

#### removeAutopilotDevice

実行するアクションとして、「AutoPilot データベースからデバイスを削除しますか?」（最終値: true）または「デバイスを保持する / 気にしない」（最終値: false）を選択できます。true に設定すると、runbook は AutoPilot データベースからデバイスを削除し、これによりデバイスは Tenant から離脱できます。false に設定すると、デバイスは AutoPilot データベースに残り、Tenant 内の別のユーザー/デバイスに再割り当てできます。

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

#### removeAADDevice

「Entra ID からデバイスを削除しますか?」（最終値: true）または「デバイスを保持 / 気にしない」（最終値: false）を実行するアクションとして選択できます。true に設定すると、runbook は Entra ID (Azure AD) からデバイス オブジェクトを削除します。false に設定すると、デバイス オブジェクトは Entra ID (Azure AD) に残ります。

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

#### disableAADDevice

「Entra ID でデバイスを無効にしますか?」（最終値: true）または「デバイスを保持 / 気にしない」（最終値: false）を実行するアクションとして選択できます。true に設定すると、runbook は Entra ID (Azure AD) でデバイス オブジェクトを無効にします。false に設定すると、デバイス オブジェクトは 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/general/outphase-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.
