# 外出中の設定

### 説明

メールボックスの自動返信を構成し、必要に応じて不在時のカレンダーイベントを作成します。この runbook は、スケジュールされた返信を有効にすることも、無効にすることもできます。

### 場所

User → Mail → Set Out Of Office

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

rjgit-user\_mail\_set-out-of-office

### アクセス許可

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

* **種類**: Office 365 Exchange Online
  * Exchange.ManageAsApp

#### RBAC ロール

* Exchange 管理者

### パラメーター

#### UserName

メールボックスのユーザープリンシパル名。

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

#### 無効化

実行するアクションとして、「Enable Out-of-Office」（最終値: $false）または「Disable Out-of-Office」（最終値: $true）を選択できます。

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

#### 開始

スケジュールされた不在時返信の開始時刻。

| プロパティ | 値          |
| ----- | ---------- |
| 必須    | false      |
| 既定値   | (get-date) |
| 種類    | DateTime   |

#### 終了

スケジュールされた不在時返信の終了時刻。指定しない場合、既定値は現在の日付から10年後になります。

| プロパティ | 値                                        |
| ----- | ---------------------------------------- |
| 必須    | false                                    |
| 既定値   | ((get-date) + (new-timespan -Days 3650)) |
| 種類    | DateTime                                 |

#### MessageInternal

社内向けの自動返信メッセージ。

| プロパティ | 値                                 |
| ----- | --------------------------------- |
| 必須    | false                             |
| 既定値   | 申し訳ありませんが、現在このユーザーはメッセージを受信できません。 |
| 種類    | 文字列                               |

#### MessageExternal

社外向けの自動返信メッセージ。

| プロパティ | 値                                 |
| ----- | --------------------------------- |
| 必須    | false                             |
| 既定値   | 申し訳ありませんが、現在このユーザーはメッセージを受信できません。 |
| 種類    | 文字列                               |

#### CreateEvent

true に設定すると、不在時のカレンダーイベントを作成します。

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

#### EventSubject

任意の不在時カレンダーイベントの件名。

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

[ランブック リファレンスの概要に戻る](/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/user/mail/set-out-of-office.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.
