伺服器 XML 設定檔範例
本文不適用於 Dynamics 365 Customer Engagement (on-premises) 9.1 版更新。 有關 9.1 版更新中的新功能資訊,請參閱最新功能。
有關 Dynamics 365 Customer Engagement (on-premises) 9.0 版的此主題資訊,請選擇位於左導航窗格上方的版本。

下列設定檔會安裝位於內部共用上的更新檔案、安裝含所有 Dynamics 365 Server 功能的完整伺服器,以及在名為 SQLServer 的預設 SQL Server 執行個體上建立新的資料庫:
<CRMSetup>
<Server>
<Patch update="true">\\ServerName\ShareName\patchfile.msp</Patch>
<LicenseKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</LicenseKey>
<SqlServer>SQLServer</SqlServer>
<Database create="true"/>
<Reporting URL="https://MyReportingServer/ReportServer"/>
<OrganizationCollation>Latin1_General_CI_AI</OrganizationCollation>
<basecurrency isocurrencycode="USD" currencyname="US Dollar" currencysymbol="$" currencyprecision="2"/>
<Organization>Organization Display Name</Organization>
<OrganizationUniqueName>Organization-Name</OrganizationUniqueName>
<OU>OU=value,DC=subdomain,DC=subdomain,DC=subdomain,DC=com</OU>
<WebsiteUrl create="true" port="5555"> </WebsiteUrl>
<InstallDir>c:\Program Files\Microsoft Dynamics CRM</InstallDir>
<CrmServiceAccount type="DomainUser">
<ServiceAccountLogin>Contoso\CRMAppService</ServiceAccountLogin>
<ServiceAccountPassword>password</ServiceAccountPassword>
</CrmServiceAccount>
<SandboxServiceAccount type="DomainUser">
<ServiceAccountLogin>Contoso\CRMSandboxService</ServiceAccountLogin>
<ServiceAccountPassword>password</ServiceAccountPassword>
</SandboxServiceAccount>
<DeploymentServiceAccount type="DomainUser">
<ServiceAccountLogin>Contoso\CRMDeploymentService</ServiceAccountLogin>
<ServiceAccountPassword>password</ServiceAccountPassword>
</DeploymentServiceAccount>
<AsyncServiceAccount type="DomainUser">
<ServiceAccountLogin>Contoso\CRMAsyncService</ServiceAccountLogin>
<ServiceAccountPassword>password</ServiceAccountPassword>
</AsyncServiceAccount>
<VSSWriterServiceAccount type="DomainUser">
<ServiceAccountLogin>Contoso\CRMVSSWriterService</ServiceAccountLogin>
<ServiceAccountPassword>password</ServiceAccountPassword>
</VSSWriterServiceAccount>
<MonitoringServiceAccount type="DomainUser">
<ServiceAccountLogin>Contoso\CRMMonitoringService</ServiceAccountLogin>
<ServiceAccountPassword>password</ServiceAccountPassword>
</MonitoringServiceAccount>
<SQM optin="true"/>
<muoptin optin="true"/>
<!-- Settings for IFD installation. May be skipped for intranet-only deployment or to configure IFD later. -->
<ifdsettings enabled="false">
<!-- Define what address considered internal, required only if enabled=true -->
<internalnetworkaddress>10.0.0.1-255.0.0.0</internalnetworkaddress>
<!-- Define URLs with IFD authentication, required only if enabled=true -->
<rootdomainscheme>http</rootdomainscheme>
<sdkrootdomain>api.contoso.com</sdkrootdomain>
<webapplicationrootdomain>app.contoso.com</webapplicationrootdomain>
<discoveryrootdomain>disc.contoso.com</discoveryrootdomain>
</ifdsettings>
<Email>
<IncomingExchangeServer name="ExchangeServerName"/>
</Email>
</Server>
</CRMSetup>
注意
維護已指定 ServiceAccountLogin
和 ServiceAccountPassword
值的設定檔具有安全性風險,因為密碼是以純文字儲存。 使用設定檔安裝 Dynamics 365 Server 之後,盡快刪除這些元素。
請參閱
Microsoft Dynamics 365 Server XML 設定檔
以預先建立群組安裝的範例伺服器 XML 設定檔