> 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/devices/report-stale-devices_scheduled.md).

# 古いデバイスのレポート（スケジュール）

### 説明

指定した日数の間アクティブでなかったデバイスを特定して一覧表示します。レポートをメールで自動送信します。

### メール送信に関する設定

メールレポートの送信は任意であり、受信者（`EmailTo`）が指定された場合にのみ行われます。送信者アドレスは次の設定から取得されます。 `RJReport.EmailSender` Tenant 設定。

この runbook は Microsoft Graph API を使用してメールを送信します。Graph API 経由でメールを送信するには、runbook のカスタマイズで既存のメールアドレスを設定する必要があります。

次を参照してください。 [RealmJoin レポート設定のドキュメント](https://docs.realmjoin.com/automation/runbooks/runbook-report-settings) 詳細について。

### 場所

組織 → デバイス → 古いデバイスをレポート（スケジュール済み）

**完全な Runbook 名**

rjgit-org\_devices\_report-stale-devices\_scheduled

### アクセス許可

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

* **種類**: Microsoft Graph
  * DeviceManagementManagedDevices.Read.All
  * Directory.Read.All
  * Device.Read.All
  * Mail.Send

### パラメーター

#### 日

古いと見なすまでの、アクティビティのない日数。

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

#### 最大日数

アクティビティのない最大日数（任意）。設定すると、Days から MaxDays の間に非アクティブだったデバイスのみが含まれます。

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

#### Windows

結果に Windows デバイスを含めます。

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

#### MacOS

結果に macOS デバイスを含めます。

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

#### iOS

結果に iOS デバイスを含めます。

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

#### Android

結果に Android デバイスを含めます。

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

#### EmailFrom

送信者のメールアドレス。これは runbook のカスタマイズで設定する必要があります

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

#### UseUserScope

ユーザースコープ フィルタリングを有効にして、プライマリユーザーのグループ所属に基づいてデバイスを含めたり除外したりします。

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

#### IncludeUserGroup

プライマリユーザーがこのグループのメンバーであるデバイスのみを含めます。UseUserScope が有効である必要があります。

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

#### ExcludeUserGroup

プライマリユーザーがこのグループのメンバーであるデバイスを除外します。UseUserScope が有効である必要があります。

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

#### EmailTo

単一のアドレスでも、カンマ区切りの複数アドレスでもかまいません（文字列）。この関数はプライバシー上の理由から、各受信者に個別のメールを送信します。

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

[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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/devices/report-stale-devices_scheduled.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
