> 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/org/security/list-inactive-devices.md).

# 非アクティブなデバイスを一覧表示

最近サインインまたは Intune 同期がないデバイスを一覧表示

### 説明

最後の Intune 同期、または Entra ID に記録された最後のサインインが、指定した日数より古いデバイスを一覧表示します。結果は実行出力に表示することも、Azure Storage Account に CSV ファイルとしてエクスポートすることもできます。何も変更されません。

### 場所

組織 → セキュリティ → 非アクティブ デバイスの一覧

**完全な Runbook 名**

rjgit-org\_security\_list-inactive-devices

### 詳細

| プロパティ    | 値                                                                   |
| -------- | ------------------------------------------------------------------- |
| バージョン    | 1.0.1                                                               |
| 必須モジュール  | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>Az.Storage (>= 9.7.2)</p> |
| スケジュール可能 | いいえ                                                                 |

### 権限

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

* **種類**: Microsoft Graph
  * DeviceManagementManagedDevices.Read.All
    * *同期日で確認する際、最近の Intune 同期がないデバイスを一覧表示します*
  * Directory.Read.All
    * *各非アクティブ デバイスを補完するために、所有者ユーザーの詳細を読み取ります*
  * Device.Read.All
    * *最後のサインイン日時で Entra デバイスを一覧表示し、登録済みの所有者を読み取ります*

### パラメーター

#### 日数

少なくともこの日数、同期またはサインインがないデバイスが一覧表示されます。

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

#### 同期

Last Intune sync は管理対象デバイスとその最後のチェックインを参照します。Last sign-in は Entra ID デバイス オブジェクトと、そのおおよその最後のサインイン日時を参照します。

| プロパティ   | 値           |
| ------- | ----------- |
| 必須      | false       |
| 既定値     | True        |
| 種類      | ブール値        |
| ポータル表示名 | 非アクティブ判定の基準 |

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

| ポータル オプション    | 値     |
| ------------- | ----- |
| 最後の Intune 同期 | true  |
| 最後のサインイン      | false |

#### ExportToFile

実行出力に一覧表示するか、Tenant 設定で構成された Storage Account に CSV ファイルとしてエクスポートします。

| プロパティ   | 値     |
| ------- | ----- |
| 必須      | false |
| 既定値     | False |
| 種類      | ブール値  |
| ポータル表示名 | 出力    |

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

| ポータル オプション      | 値     |
| --------------- | ----- |
| CSV ファイルにエクスポート | true  |
| 実行出力に一覧表示       | false |

#### コンテナー名

レポート ファイルがアップロードされる Storage Account のコンテナー。テナント設定 InactiveDevices.Container から取得されます。

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### リソース グループ名

Storage Account のリソース グループ。テナント設定 InactiveDevices.ResourceGroup から取得されます。

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### Storage Account 名

エクスポート用の Storage Account。テナント設定 InactiveDevices.StorageAccount.Name から取得されます。

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### Storage Account の場所

Storage Account を作成する必要がある場合に使用される Azure リージョン。テナント設定 InactiveDevices.StorageAccount.Location から取得されます。

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### Storage Account SKU

Storage Account を作成する必要がある場合に使用されるパフォーマンス レベル。テナント設定 InactiveDevices.StorageAccount.Sku から取得されます。

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

[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/org/security/list-inactive-devices.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.
