> 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-windows-devices-without-autopilot.md).

# Autopilot のない Windows デバイスをレポート

### 説明

この runbook は、Entra ID (Microsoft Entra) のすべての Windows デバイス オブジェクトを一覧表示し、Intune の Windows Autopilot デバイス ID と照合します。Autopilot オブジェクト（Autopilot オブジェクトの azureActiveDirectoryDeviceId 経由）から参照されていないデバイス ID を持つ Entra デバイスは、孤立オブジェクトとして報告されます。

このような孤立した Entra デバイス オブジェクトは、初期化、再イメージ化、または置き換えされたものの、クリーンアップされなかったデバイスに由来する典型的な残骸（「Objektleichen」）です。このレポートは、これらの候補を可視化することでクリーンアップ作業を支援し、確認して、必要であれば削除できるようにします。

必要に応じて、レポートの CSV を Azure Storage Account にアップロード（期限付きダウンロード リンクを返します）したり、CSV を添付してメールで送信したりできます。

### 孤立した Windows デバイスのレポート作成

この runbook は、Entra ID のすべての Windows デバイス オブジェクトを一覧表示し、Intune の Windows Autopilot デバイス ID と照合します。関連付けられた Autopilot オブジェクトを持たないデバイス（Autopilot オブジェクトの `azureActiveDirectoryDeviceId`）はクリーンアップ候補（「Objektleichen」）として報告されます。

出力は 2 つの Yes/No トグルで制御されます：

* **レポートをメールで送信しますか？** — 有効にすると、宛先アドレス フィールド（`EmailTo`）が表示され、レポートは CSV を添付してメールで送信されます。
* **ファイルのダウンロード リンクを作成しますか？** — 有効にすると、CSV は Azure Storage Account にアップロードされ、期限付きダウンロード リンクが返されます。

両方を組み合わせることも、個別に使用することもできます。両方が無効の場合、レポートは runbook の出力にのみ表示されます。

### Storage Account に関する設定

CSV レポートは Azure Storage Account にアップロードされます。対象のストレージ アカウントは共有の **RJReport** Tenant 設定から取得されるため、一度設定すればすべてのレポート runbook で再利用できます：

* `RJReport.StorageAccount.ResourceGroup`
* `RJReport.StorageAccount.StorageAccountName`
* `RJReport.StorageAccount.LinkExpiryDays` (省略可能、既定値は 6)

コンテナー名は runbook ごとに構成されます（パラメーター `ContainerName`、既定 `windows-devices-without-autopilot`）で、意図的にグローバル RJReport 設定の一部ではありません。

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

この runbook のマネージド ID には少なくとも `Contributor` サブスクリプションまたはストレージ アカウントを含むリソース グループに対するアクセスが必要です。

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

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

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

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

### 場所

組織 → デバイス → Report Windows Devices Without Autopilot

**Runbook の完全名**

rjgit-org\_devices\_report-windows-devices-without-autopilot

### 権限

#### アプリケーション権限

* **種類**: Microsoft Graph
  * Device.Read.All
  * DeviceManagementServiceConfig.Read.All
  * Organization.Read.All
  * Mail.Send

#### 権限に関する注記

Azure IaaS: - Contributor - エクスポートに使用するサブスクリプションまたはリソース グループへのアクセス

### パラメーター

#### SendMail

有効にすると、レポートはメールで送信されます。これをオンにすると、受信者アドレス フィールドが表示されます。

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

#### EmailTo

メール レポートの受信者アドレス。SendMail が有効な場合にのみ使用／表示されます。単一アドレスまたはカンマ区切りの複数アドレス（string）を指定できます。

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

#### EmailFrom

送信者のメール アドレス。RJReport Tenant 設定（RJReport.EmailSender）から取得されます。

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

#### CreateDownloadLink

有効にすると、レポート CSV は Azure Storage Account にアップロードされ、期限付きダウンロード リンクが返されます。

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

#### ContainerName

アップロードに使用する Storage container 名。runbook ごとに構成されます（グローバルな RJReport 設定ではありません）。

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

#### ResourceGroupName

ストレージ アカウントを含むリソース グループ。RJReport Tenant 設定から取得されます。

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

#### StorageAccountName

アップロードに使用する Storage account 名。RJReport Tenant 設定から取得されます。

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

#### LinkExpiryDays

生成されたダウンロード リンクの有効期限が切れるまでの日数。RJReport Tenant 設定から取得されます。

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

[Runbook Reference の概要に戻る](/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:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/devices/report-windows-devices-without-autopilot.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.
