Conservazione della configurazione personalizzata di Exchange Server

SI APPLICA A:NO-IMG-162016 sì-img-192019 sì-img-seEdizione in abbonamento

Panoramica

Dopo aver installato Exchange Server, un'attività comune degli amministratori consiste nel personalizzare le impostazioni, ad esempio i limiti di dimensione dei messaggi specifici del client. Queste impostazioni vengono in genere configurate in , sharedweb.config, e altri file di web.configconfigurazione sul server Exchange.

Storicamente, una delle sfide per gli amministratori di Exchange Server è che ogni volta che viene installato un aggiornamento cumulativo (CU), questi file e le relative impostazioni personalizzate vengono sovrascritti dal programma di installazione, costringendo un amministratore a eseguire il backup/ripristino delle impostazioni o a riapplicarli dopo ogni installazione di CU.

Con Exchange Server 2019 CU13 e versioni successive, il programma di installazione ora esegue il backup e ripristina i file di configurazione più comuni in modo che gli amministratori non debbano più ripristinarli manualmente o riapplicarli.

Il programma di installazione mantiene le configurazioni personalizzate nel modo seguente:

  1. Il programma di installazione crea un backup dei file esistenti.
  2. Il programma di installazione installa Exchange Server (o aggiorna Exchange Server esistente) e sovrascrive i file esistenti con le configurazioni e le impostazioni predefinite presenti nel programma di installazione di Exchange.
  3. Infine, il programma di installazione ripristina i file appropriati e i valori personalizzati delle chiavi critiche archiviati nei file di configurazione prima dell'aggiornamento nei nuovi file di configurazione copiati dal programma di installazione di Exchange.

Il programma di installazione mantiene le impostazioni di configurazione più critiche (se presenti), che possono includere intere sezioni o determinate coppie chiave-valore.

  1. appSettings Contiene molte coppie chiave-valore che configurano una serie di impostazioni dell'applicazione (ad esempio, percorso di registrazione, dimensioni della coda di messaggi e così via). Qualsiasi coppia chiave-valore creata utilizzando <add key> il tag viene mantenuta se questa sezione è presente.

    Ad esempio, nel file seguente, ClientTunnelExpirationTime viene mantenuto.

    <configuration> 
    <appSettings> 
        <add key="ClientTunnelExpirationTime" value="30" /> 
    </appSettings> 
    </ configuration>
    
  2. L'intera proxySettings sezione è critica ed è preservata.

  3. maxAllowedContentLength viene utilizzato per specificare la lunghezza massima del contenuto (in byte) in una richiesta.

    <system.webServer> 
        <security> 
        <requestFiltering> 
            <requestLimits maxAllowedContentLength="4194304" /> 
        </requestFiltering> 
        </security> 
    <system.webServer> 
    
  4. maxRequestLength viene usato per specificare la dimensione massima della richiesta.

    <system.web> 
        <httpRuntime maxRequestLength="4194304" /> 
    </system.web> 
    
  5. maxReceivedMessageSize viene utilizzato negli systembinding elementi and custombinding per impostare la dimensione massima (in byte) per un messaggio che può essere ricevuto su un canale configurato con questa associazione.

  6. maxStringContentLength è presente in entrambi gli systembinding elementi and customBinding e viene utilizzato per limitare le dimensioni massime delle stringhe restituite dal lettore XML.

  7. extendedProtectionPolicy viene usato per impostare i criteri di protezione estesa, che vengono usati dal server per convalidare le connessioni client in ingresso.

  8. defaultProxy viene usato per configurare il server proxy HTTP.

Elenco dei file di configurazione conservati insieme alle sezioni e alle chiavi conservate

Ecco l'elenco di tutti i file di configurazione insieme alle sezioni e alle chiavi che vengono conservate automaticamente durante l'aggiornamento CU.

Nota

Le mitigazioni delle regole di riscrittura degli URL IIS applicate a livello di sito/vDir non verranno mantenute da questa funzionalità e alla fine verranno riapplicate dal servizio di mitigazione di emergenza di Exchange se sono ancora applicabili per l'aggiornamento cumulativo installato. Ulteriori informazioni sono disponibili qui.

No. Nome file di configurazione Sezioni conservate Chiavi aggiuntive conservate
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,
Criterio 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

Al termine dell'installazione, verranno visualizzati i seguenti messaggi per indicare che tutte le impostazioni di configurazione mantenute sono state ripristinate correttamente.

Modalità GUI

Modalità automatica

Il backup dei file di configurazione conservati è memorizzato in %ProgramFiles%\Microsoft\Exchange Server\V15\Config sottocartelle che utilizzano un formato di denominazione di v_<ExchangeVersion>_<Timestamp>.

Nota

Se questi file non sono necessari al termine dell'installazione, possono essere eliminati senza problemi.

Il programma di installazione mantiene le impostazioni personalizzate per impostazione predefinita. Se non si desidera utilizzare questa funzionalità, è possibile disattivarla creando una REG_SZ voce DisablePreservation in HKLM\SOFTWARE\Microsoft\ExchangeServer\v15\Setup e impostando il valore su 1.

La coppia chiave/valore può essere creata eseguendo il comando di PowerShell seguente:

New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup -Name "DisablePreservation" -Value 1 -Type String

Se l'installazione di Exchange viene eseguita dopo aver impostato la chiave del registro su 1, l'installazione non eseguirà il backup né ripristinerà alcuna coppia chiave/valore in nessuna delle configurazioni.

Chiave del Registro di sistema Valore del Registro di sistema Comportamento di installazione di Exchange
DisablePreservation (Tipo: REG_SZ) 1 Tutte le coppie chiave-valore nei file di configurazione vengono reimpostate e non viene archiviato alcun backup della configurazione pre-aggiornamento (questo comportamento è equivalente ai precedenti aggiornamenti CU).
DisablePreservation (Tipo: REG_SZ) NULL Il programma di installazione crea un backup delle configurazioni pre-aggiornamento e conserva una determinata coppia chiave/valore nelle configurazioni pre-aggiornamento alle nuove configurazioni.
DisablePreservation (Tipo: REG_SZ) Qualsiasi altro valore Il programma di installazione crea un backup delle configurazioni pre-aggiornamento e conserva una determinata coppia chiave/valore nelle configurazioni pre-aggiornamento alle nuove configurazioni.

Se il programma di installazione non riesce a ripristinare tutte le impostazioni allo stato precedente, visualizza un avviso.

Modalità automatica

Modalità presidiata

Come passaggio successivo, gli amministratori possono analizzare il file di log dell'installazione per vedere quali impostazioni non sono state mantenute. Nel file di log possono essere presenti una o più voci per indicare quali impostazioni non sono state mantenute:

  1. Eccezione rilevata durante la lettura del file di configurazione: <configFileName>. Salta la conservazione.
  2. Eccezione rilevata durante il salvataggio <Preservation cmdlet name> delle modifiche a: <configFileName>.
  3. Eccezione rilevata durante la convalida dello schema del file di configurazione: <configFileName>. Salta la conservazione.
  4. <Preservation cmdlet name> Fallito per: <configFileName>

Gli amministratori possono copiare manualmente tutti i file di configurazione dalla posizione di backup alla posizione richiesta sovrascrivendo i file creati dal programma di installazione. In questo modo vengono ripristinati anche questi file allo stato di pre-installazione.