> 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/remediation-scripts.md).

# 修復スクリプト

RealmJoin が管理し継続的に更新する Intune 修復スクリプトで、Windows クライアントの問題を検出して修正します。

## 概要

[Intune 修復スクリプト](https://learn.microsoft.com/en-us/mem/intune/fundamentals/remediations) スクリプトを使用して、管理対象の Windows クライアント上の問題を報告し、対処できるようにします。

RealmJoin Portal では、お使いの環境の Intune 修復スクリプトを確認できます。さらに、RealmJoin は [管理対象で継続的に更新されるスクリプト一式を](https://github.com/realmjoin/realmjoin-remediation) GitHub で使用できます。

## 修復スクリプト一覧

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FFJ3kcPZlDE4vzgkQIorV%2Fimage.png?alt=media&amp;token=27bf0aab-d2aa-4eb6-acfb-e5114eef1bc5" alt=""><figcaption><p>修復スクリプト一覧</p></figcaption></figure>

修復スクリプト一覧では、お使いの環境で既に存在するすべての修復スクリプトと利用可能な修復スクリプトを確認できます。

### 検索と並べ替え

作成者、状態、または名前でスクリプトを検索できます。検索は入力に応じて更新されます。

ほとんどの項目は、項目のヘッダー（名前）をクリックして並べ替えできます。

### フィルター

フィルターを使用して、状態別に表示する項目を絞り込めます

* **すべて** （既定）- 既存および利用可能なすべての修復スクリプトを表示します
* **管理対象** - RealmJoin によって管理されているすべての修復スクリプトを表示します。利用可能（いわゆる「未ステージ」）、ステージ済み、デプロイ済み。
* **ステージ済み** - お使いの Intune インスタンスにインポートされているが、ユーザー/デバイスには割り当てられていない、管理対象の修復スクリプトのみを表示します。
* **デプロイ済み** - ユーザー/デバイスに割り当てられている管理対象の修復スクリプトのみを表示します。

## 修復スクリプトの詳細

スクリプト名をクリックすると、スクリプトの詳細、統計、ステージ状態を確認できるほか、お使いの環境で管理対象スクリプトをデプロイまたは削除できます。

ページ左側には、64bit ホスト上でスクリプトを 32bit で実行する必要があるかどうかといったフラグを含む、スクリプトのメタデータが表示されます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FbOL9kOxAT4fbqP5ffyVE%2Fimage.png?alt=media&amp;token=0f120fef-f402-4a64-96b1-09cb8e32ddbc" alt=""><figcaption><p>修復スクリプトの詳細</p></figcaption></figure>

詳細は異なる場合があります。たとえば、お使いの Tenant で既にステージ済み/存在するスクリプトのみ、「最終更新」日付を持てます。

ページ右側は複数のタブに分かれています。

* **概要** - スクリプトに関する基本情報
* **検出スクリプトのソース** - 検出スクリプトの PowerShell ソースを表示します。
* **修復スクリプトのソース** - 修復スクリプトの PowerShell ソース（任意）を表示します。

その他のタブや UI 要素は、スクリプト パッケージの状態に依存します。

### カスタム スクリプト

* **割り当て** - RealmJoin の外部で作成したスクリプトについては、ユーザーとグループへの割り当てを確認できます（変更はできません）。また、検出スクリプトの実行スケジュールも表示されます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FqfuSMfQQpfZOowq63U8u%2Fimage.png?alt=media&amp;token=326c684d-a171-4216-9f0d-6b86e9337b53" alt=""><figcaption><p>カスタム スクリプトの割り当て</p></figcaption></figure>

* **統計** - スクリプトの実行状況とデバイス統計を表示します

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fo2kbypd0f8R0yqRqB9NM%2Fimage.png?alt=media&amp;token=f0c626e2-a34b-4f00-9514-3e761054f5e7" alt=""><figcaption><p>スクリプト統計</p></figcaption></figure>

### 管理対象スクリプト

#### 未ステージ

管理対象スクリプトがまだステージされていない場合（つまり、まだお使いの Intune インスタンスに存在しない場合）、RealmJoin Portal には次のボタンが表示されます。 **ステージ** お使いの環境でそのスクリプトをステージします。

これにより、そのスクリプトは割り当て可能になりますが、まだデバイスには影響しません。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FfC1Tx5hZHQQNBj53DYAX%2Fimage.png?alt=media&amp;token=89f6571f-3d34-4655-be64-122a20b5674d" alt=""><figcaption><p>管理対象スクリプトをステージする</p></figcaption></figure>

#### ステージ済みおよびデプロイ済み

お使いの環境に存在する管理対象スクリプトは、次のような、お使いの環境内の他の（カスタム）スクリプトと同じ情報を表示します **既存の割り当て** と **統計**、参照: [カスタム スクリプト](#custom-scripts).

#### 削除

ステージ済みおよびデプロイ済みの管理対象スクリプトは、次を使用して Intune から削除できます。 **その他** -> **削除** ボタンをクリックします。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FWIWXbp3t06jNZ9heOaBc%2Fimage.png?alt=media&amp;token=1aa0729e-905c-47d4-bad1-285ed04eea11" alt=""><figcaption><p>管理対象スクリプトを削除</p></figcaption></figure>

管理対象スクリプトを削除すると、その [管理対象グループ](#managed-groups) （存在する場合）

#### 割り当て

で、管理対象スクリプトをユーザーとデバイスに割り当てることができます。 **割り当て** タブで、管理対象グループを作成するか、既存のグループを割り当てに使用できます。割り当てからグループを除外することもできます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FYgMSxVN67Nlff0CE6a4t%2Fimage.png?alt=media&amp;token=53a183fd-b3ad-40d7-8eb0-f9156fb04c56" alt=""><figcaption><p>管理対象スクリプトを割り当てる</p></figcaption></figure>

を割り当てる場合、 **ステージ済みの** スクリプトの状態は次のように変わります。 **デプロイ済み**。この時点で、クライアントやユーザーに影響を与える可能性があります。

次を使用できます。 **すべてのユーザーに割り当て** と **すべてのデバイスに割り当て** このスクリプトに Intune の既定の割り当て先を使用します。すると、評価（検出）の希望スケジュールを定義するダイアログが表示されます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FwgJ2wjtO2fKKwUo2xicJ%2Fimage.png?alt=media&amp;token=a4417205-d9f2-4b24-a465-0f6dffd83457" alt=""><figcaption><p>スクリプト スケジュール エディター</p></figcaption></figure>

#### 管理対象グループ

または、 **管理対象グループを作成** 「すべてのデバイス」または「すべてのユーザー」の代わりに割り当てられる Entra グループを作成できます。

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2F8vHaaWS6EryBr12ra7lg%2Fimage.png?alt=media&amp;token=f2323dee-fade-4c4b-b123-54e9a1288fb3" alt=""><figcaption><p>管理対象グループ</p></figcaption></figure>

管理対象グループの命名規則は次で定義できます。 [設定 -> 全般](https://docs.realmjoin.com/ja/to/general.md).

管理対象の修復スクリプトの更新が利用可能になると、RealmJoin はこれらのグループが更新用修復スクリプトに割り当てられるようにします。

次を使用できます。 **スケジュールを変更** この割り当てのスクリプト スケジュール エディターを開きます。


---

# 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/remediation-scripts.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.
