適用対象:
2016
2019
サブスクリプション エディション
概要
Exchange Serverをインストールした後、一般的な管理タスクは、クライアント固有のメッセージサイズ制限などの設定をカスタマイズすることです。 これらの設定は通常、Exchange サーバー上の web.config、 sharedweb.config、およびその他の構成ファイルで構成されます。
これまで、Exchange サーバー管理者にとっての課題の 1 つは、累積的な更新プログラム (CU) がインストールされるたびに、これらのファイルとその中のカスタム設定がセットアップによって上書きされるため、管理者は設定をバックアップ/復元するか、CU をインストールするたびに再適用する必要があることです。
Exchange Server 2019 CU13 以降では、セットアップで最も一般的な構成ファイルをバックアップおよび復元できるようになったため、管理者はそれらを手動で復元または再適用する必要がなくなりました。
セットアップでは、次のようにカスタム構成が保持されます。
- セットアップにより、既存のファイルのバックアップが作成されます。
- セットアップにより、Exchange Server がインストール (または既存の Exchange Server をアップグレード) され、Exchange セットアップにある既定の構成と設定で既存のファイルが上書きされます。
- セットアップは最終的に、アップグレード前構成ファイルに保存されている重要なキーの適切なファイルとカスタム値を、Exchange セットアップからコピーした新しい構成ファイルに復元します。
セットアップでは、最も重要な構成設定 (存在する場合) が保持されます。これには、セクション全体または特定のキーと値のペアを含めることができます。
appSettingsさまざまなアプリケーション設定 (ログ パス、メッセージ キュー サイズなど) を構成する多くのキーと値のペアが含まれています。 このセクションが存在する場合、<add key>タグを使用して作成されたキーと値のペアは保持されます。たとえば、次のファイルでは、
ClientTunnelExpirationTimeが保持されます。<configuration> <appSettings> <add key="ClientTunnelExpirationTime" value="30" /> </appSettings> </ configuration>proxySettingsセクション全体が重要であり、保持されます。maxAllowedContentLength要求内のコンテンツの最大長 (バイト単位) を指定するために使用されます。<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="4194304" /> </requestFiltering> </security> <system.webServer>maxRequestLengthは、最大要求サイズを指定するために使用されます。<system.web> <httpRuntime maxRequestLength="4194304" /> </system.web>maxReceivedMessageSizeは、このバインディングで構成されたチャネルで受信できるメッセージの最大サイズ (バイト単位) を設定するために、systembinding要素およびcustombinding要素で使用されます。maxStringContentLengthsystembinding要素とcustomBinding要素の両方に存在し、XML リーダーが返す最大文字列サイズを制限するために使用されます。extendedProtectionPolicy拡張保護ポリシーを設定するために使用します。このポリシーは、サーバーが着信クライアント接続を検証するために使用します。defaultProxyHTTP プロキシ サーバーを構成するために使用されます。
保存される構成ファイルの一覧と、保存されたセクションとキー
以下は、すべての構成ファイルの一覧と、CU のアップグレード中に自動的に保存されるセクションとキーです。
注:
サイトごと/vDir ごとのレベルで適用された IIS URL 書き換えルール軽減策は、この機能では保持されず、インストールされた CU に適用可能な場合は、最終的に Exchange 緊急軽減策サービスによって再適用されます。 詳細な情報は、こちらで確認できます。
| その必要はありません。 | 構成ファイル名 | 保持されたセクション | 保持される追加のキー |
|---|---|---|---|
| 1 | <ExchangeInstallPath>\V15\Bin\ComplianceAuditService.exe.config |
appSettings | - |
| 2 | <ExchangeInstallPath>\V15\Bin\EdgeTransport.exe.config |
appSettings | - |
| 3 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Diagnostics.Service.exe.config |
appSettings | - |
| 4 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Directory.TopologyService.exe.config |
appSettings | maxReceivedMessageSize, maxStringContentLength |
| 5 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.EdgeSyncSvc.exe.config |
appSettings | - |
| 6 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Mitigation.Service.exe.config |
appSettings | - |
| 9 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.RpcClientAccess.Service.exe.config |
appSettings, defaultProxy | maxReceivedMessageSize, maxStringContentLength |
| 10 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Search.Service.exe.config |
appSettings | - |
| 12 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Servicehost.exe.config |
appSettings, defaultProxy | maxReceivedMessageSize, maxStringContentLength |
| 14 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Store.Service.exe.config |
appSettings | - |
| 17 | <ExchangeInstallPath>\V15\Bin\MSExchangeCompliance.exe.config |
appSettings | - |
| 18 | <ExchangeInstallPath>\V15\Bin\MSExchangeDelivery.exe.config |
appSettings | - |
| 19 | <ExchangeInstallPath>\V15\Bin\MSExchangeFrontEndTransport.exe.config |
appSettings | - |
| 20 | <ExchangeInstallPath>\V15\Bin\MSExchangeHMHost.exe.config |
appSettings | - |
| 21 | <ExchangeInstallPath>\V15\Bin\MSExchangeHMRecovery.exe.config |
appSettings | - |
| 22 | <ExchangeInstallPath>\V15\Bin\MSExchangeHMWorker.exe.config |
appSettings | - |
| 23 | <ExchangeInstallPath>\V15\Bin\MSExchangeMailboxAssistants.exe.config |
appSettings | - |
| 24 | <ExchangeInstallPath>\V15\Bin\MsExchangeMailboxReplication.exe.config |
appSettings, defaultProxy | maxReceivedMessageSize, maxStringContentLength |
| 26 | <ExchangeInstallPath>\V15\Bin\MSExchangeSubmission.exe.config |
appSettings | - |
| 27 | <ExchangeInstallPath>\V15\Bin\MSExchangeThrottling.exe.config |
appSettings | - |
| 28 | <ExchangeInstallPath>\V15\Bin\MSExchangeTransport.exe.config |
appSettings | - |
| 29 | <ExchangeInstallPath>\V15\ClientAccess\PopImap\Microsoft.Exchange.Imap4.exe.config |
appSettings, defaultProxy |
- |
| 30 | <ExchangeInstallPath>\V15\ClientAccess\PopImap\Microsoft.Exchange.Imap4Service.exe.config |
appSettings | - |
| 31 | <ExchangeInstallPath>\V15\ClientAccess\PopImap\Microsoft.Exchange.Pop3.exe.config |
appSettings, defaultProxy |
- |
| 32 | <ExchangeInstallPath>\V15\ClientAccess\PopImap\Microsoft.Exchange.Pop3Service.exe.config |
appSettings | - |
| 33 | <ExchangeInstallPath>\V15\FrontEnd\PopImap\Microsoft.Exchange.Imap4.exe.config |
appSettings, defaultProxy |
- |
| 34 | <ExchangeInstallPath>\V15\FrontEnd\PopImap\Microsoft.Exchange.Imap4Service.exe.config |
appSettings | - |
| 35 | <ExchangeInstallPath>\V15\FrontEnd\PopImap\Microsoft.Exchange.Pop3.exe.config |
appSettings, defaultProxy |
- |
| 36 | <ExchangeInstallPath>\V15\FrontEnd\PopImap\Microsoft.Exchange.Pop3Service.exe.config |
appSettings | - |
| 37 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.AddressBook.Service.dll.config |
appSettings | - |
| 38 | <ExchangeInstallPath>\V15\Bin\Microsoft.Exchange.Management.Transport.dll.config |
appSettings | - |
| 39 | <ExchangeInstallPath>\V15\TransportRoles\agents\Antimalware\Microsoft.Exchange.Transport.Agent.Malware.dll.config |
appSettings | - |
| 40 | <ExchangeInstallPath>\V15\Bin\MSExchangeUM.config |
appSettings | - |
| 41 | <ExchangeInstallPath>\V15\ClientAccess\Autodiscover\web.config |
appSettings | maxReceivedMessageSize |
| 42 | <ExchangeInstallPath>\V15\ClientAccess\ecp\web.config |
appSettings | maxReceivedMessageSize, maxStringContentLength |
| 43 | <ExchangeInstallPath>\V15\ClientAccess\ecp\DLPPolicy\Web.config |
- | maxRequestLength |
| 44 | <ExchangeInstallPath>\V15\ClientAccess\ecp\Handlers\Web.config |
- | maxRequestLength |
| 45 | <ExchangeInstallPath>\V15\ClientAccess\ecp\PersonalSettings\Web.config |
- | maxRequestLength |
| 46 | <ExchangeInstallPath>\V15\ClientAccess\ecp\UsersGroups\Web.config |
- | maxRequestLength |
| 47 | <ExchangeInstallPath>\V15\ClientAccess\exchweb\ews\web.config |
appSettings, defaultProxy, extendedProtectionPolicy |
maxAllowedContentLength, maxReceivedMessageSize, maxRequestLength, maxStringContentLength |
| 48 | <ExchangeInstallPath>\V15\ClientAccess\mapi\emsmdb\web.config |
appSettings, defaultProxy |
maxAllowedContentLength, maxReceivedMessageSize, maxRequestLength, maxStringContentLength |
| 49 | <ExchangeInstallPath>\V15\ClientAccess\mapi\nspi\web.config |
appSettings, defaultProxy |
maxAllowedContentLength, maxRequestLength |
| 50 | <ExchangeInstallPath>\V15\ClientAccess\OAB\web.config |
appSettings | - |
| 52 | <ExchangeInstallPath>\V15\ClientAccess\PowerShell\web.config |
appSettings | - |
| 53 | <ExchangeInstallPath>\V15\ClientAccess\PowerShell-Proxy\web.config |
appSettings | - |
| 54 | <ExchangeInstallPath>\V15\ClientAccess\PushNotifications\web.config |
appSettings | maxReceivedMessageSize |
| 55 | <ExchangeInstallPath>\V15\ClientAccess\rest\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 56 | <ExchangeInstallPath>\V15\ClientAccess\RpcProxy\web.config |
appSettings | - |
| 57 | <ExchangeInstallPath>\V15\ClientAccess\Sync\web.config |
appSettings, defaultProxy |
MaxDocumentDataSize, maxRequestLength, maxAllowedContentLength |
| 58 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\autodiscover\web.config |
appSettings | - |
| 59 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\ecp\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 60 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\ews\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 61 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\mapi\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 62 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\oab\web.config |
appSettings | - |
| 63 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\owa\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 64 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\powershell\web.config |
appSettings | - |
| 65 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\pushnotifications\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 66 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\ReportingWebService\web.config |
appSettings | - |
| 67 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\rest\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 68 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\rpc\web.config |
appSettings | maxAllowedContentLength, maxRequestLength |
| 69 | <ExchangeInstallPath>\V15\FrontEnd\HttpProxy\sync\web.config |
appSettings | maxRequestLength, maxAllowedContentLength |
| 70 | <ExchangeInstallPath>\V15\FIP-FS\Data\Configuration.xml |
ProxySettings | - |
| 71 | <ExchangeInstallPath>\V15\Bin\Search\Ceres\Runtime\1.0\Noderunner.exe.config |
- | memoryLimitMegabytes |
セットアップが完了すると、保持されているすべての構成設定が正常に復元されたことを示す次のメッセージが表示されます。
GUI モード
無人モードで
保存された構成ファイルのバックアップは、v_<ExchangeVersion>_<Timestamp> の名前付け形式を使用するサブフォルダーの%ProgramFiles%\Microsoft\Exchange Server\V15\Configに保存されます。
注:
セットアップの完了後にこれらのファイルが不要な場合は、安全に削除できます。
セットアップでは、既定でカスタム設定が保持されます。 この機能を使用しない場合は、[HKLM\SOFTWARE\Microsoft\ExchangeServer\v15\Setup] の下にREG_SZ エントリ DisablePreservationを作成し、値を 1 に設定することで無効にできます。
キーと値のペアは、次の PowerShell コマンドを実行して作成できます。
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup -Name "DisablePreservation" -Value 1 -Type String
レジストリ キーを 1 に設定した後に Exchange セットアップが実行された場合、セットアップでは、どの構成でもキーと値のペアがバックアップまたは復元されません。
| レジストリ キー | レジストリ値 | Exchange セットアップの動作 |
|---|---|---|
DisablePreservation (型: REG_SZ) |
1 | 構成ファイル内のすべてのキーと値のペアがリセットされ、アップグレード前構成のバックアップは保存されません (この動作は以前の CU アップグレードと同じです)。 |
DisablePreservation (型: REG_SZ) |
NULL | セットアップにより、アップグレード前構成のバックアップが作成され、アップグレード前構成の特定のキーと値のペアが新しい構成に保持されます。 |
DisablePreservation (型: REG_SZ) |
その他の値 | セットアップにより、アップグレード前構成のバックアップが作成され、アップグレード前構成の特定のキーと値のペアが新しい構成に保持されます。 |
セットアップですべての設定を以前の状態に復元できない場合は、警告が表示されます。
無人モードで
有人モード
次の手順として、管理者はセットアップ ログ ファイルを分析して、どの設定を保持できなかったかを確認できます。 どの設定を保持できなかったかを示すために、ログ ファイルに 1 つ以上のエントリが存在する場合があります。
- 構成ファイルの読み取り中に例外が発生しました:
<configFileName>。 保持のスキップ。 -
<Preservation cmdlet name>変更の保存中に例外が発生しました:<configFileName>。 - 構成ファイルのスキーマ検証中に例外が発生しました:
<configFileName>。 保持のスキップ。 -
<Preservation cmdlet name>失敗した理由:<configFileName>
管理者は、セットアップによって作成されたファイルを上書きすることで、バックアップの場所から必要な場所に構成ファイルを手動でコピーできます。 これにより、これらのファイルもセットアップ前の状態に復元されます。