伺服器組建 DVD XML 回應檔案範例

 

適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上次修改主題的時間: 2008-07-23

本主題提供的範例 XML 回應檔案,可作為建立 XML 回應檔案的起點,製作組建 DVD 以改善伺服器組建處理程序需要該檔案。您可以修改下列程序,為組織建立必要的 XML 回應檔案。

下列範例必須如備註所述進行修改,才能在您的特定環境中運作。這些範例 XML 檔案可協助您自動化許多在環境中部署 Exchange 伺服器所需的步驟。

範例 XML 支援檔案

important重要事項:
這些 XML 範例只提供如何實作自動化步驟的說明。您必須加以修改,以讓指令碼適合您的環境。您必須在實驗室環境中進行各項測試,之後才能嘗試在生產環境中加以運用。

開始之前

若要執行下列程序,您使用的帳戶必須是本機 Administrators 群組的成員。

如需管理 Exchange 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

Exchange-Base.xml

程序

使用記事本建立 XML 回應檔案,自動化 Exchange 環境中的 Exchange 必要項目安裝

  1. 開啟記事本或其他文字編輯器。

  2. 將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .bat 副檔名加以儲存。建議您將檔案命名為 exchange-base.xml

    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #"!!!!!!  THIS IS NOT A MICROSOFT SUPPORTED XML File.  !!!!!!!"
    #"!!!!!!!      TEST IN A LAB FOR DESIRED OUTCOME      !!!!!!!!"
    #"!!!!!!!                          !!!!!!!!!!"
    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #" "
    <!-- ServerManagerCmd Answer File compatible with Windows Server 2008   -->
    <!-- Usage: ServerManagerCmd -ip Exchange-Base.xml-->
    <!-- -->
    
    <ServerManagerConfiguration
    Action="Install"
    xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
    
    <!-- BASE: Install PowerShell feature -->
    <Feature Id="PowerShell"/>
    
    <!-- PREPARESCHEMA: Install LDIFDE and other directory tools -->
    <Feature Id="RSAT-ADDS"/>
    
    </ServerManagerConfiguration>
    

Exchange-CAS.xml

程序

使用記事本建立 XML 回應檔案,自動化 Exchange 環境中已安裝 Client Access server role 的 Exchange 2007 伺服器安裝

  1. 開啟記事本或其他文字編輯器。

  2. 將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .xml 副檔名加以儲存。建議您將檔案命名為 exchange-CAS.xml

    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #"!!!!!!  THIS IS NOT A MICROSOFT SUPPORTED XML File.  !!!!!!!"
    #"!!!!!!!      TEST IN A LAB FOR DESIRED OUTCOME      !!!!!!!!"
    #"!!!!!!!                          !!!!!!!!!!"
    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #" "
    <!-- ServerManagerCmd Answer File compatible with Windows Server 2008 -->
    <!-- Usage: ServerManagerCmd -ip Exchange-CAS.xml-->
    <!-- -->
    
    <ServerManagerConfiguration
    Action="Install"
    xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
    
    <!-- Install the Web Server role with additional child components -->
    <Role Id="Web-Server"/>
    <RoleService Id="Web-Metabase"/>
    <RoleService Id="Web-Lgcy-Mgmt-Console"/>
    <RoleService Id="Web-ISAPI-Ext"/>
    
    <!-- Install the three authentication types for OWA, GZip compression, plus Outlook Anywhere support -->
    <RoleService Id="Web-Basic-Auth"/>
    <RoleService Id="Web-Digest-Auth"/>
    <RoleService Id="Web-Windows-Auth"/>
    <RoleService Id="Web-Dyn-Compression"/>
    <Feature Id="RPC-over-HTTP-proxy"/>
    
    </ServerManagerConfiguration>
    

Exchange-Edge.xml

程序

使用記事本建立 XML 回應檔案,自動化 Exchange 環境中已安裝 Edge Transport server role 的 Exchange 2007 伺服器安裝

  1. 開啟記事本或其他文字編輯器。

  2. 將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .xml 副檔名加以儲存。建議您將檔案命名為 exchange-edge.xml

    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #"!!!!!!  THIS IS NOT A MICROSOFT SUPPORTED XML File.  !!!!!!!"
    #"!!!!!!!      TEST IN A LAB FOR DESIRED OUTCOME      !!!!!!!!"
    #"!!!!!!!                          !!!!!!!!!!"
    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #" "
    <!-- ServerManagerCmd Answer File compatible with Windows Server 2008 -->
    <!-- Usage: ServerManagerCmd -ip Exchange-Edge.xml-->
    <!-- -->
    
    <ServerManagerConfiguration
    Action="Install"
    xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
    
    <!-- Install AD Lightweight Directory Services (aka ADAM) -->
    <Role Id="ADLDS"/>
    
    </ServerManagerConfiguration>
    

Exchange-MBX.xml

程序

使用記事本建立 XML 回應檔案,自動化 Exchange 環境中已安裝 Mailbox server role 的 Exchange 2007 伺服器安裝

  1. 開啟記事本或其他文字編輯器。

  2. 將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .xml 副檔名加以儲存。建議您將檔案命名為 exchange-mbx.xml

    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #"!!!!!!  THIS IS NOT A MICROSOFT SUPPORTED XML File.  !!!!!!!"
    #"!!!!!!!      TEST IN A LAB FOR DESIRED OUTCOME      !!!!!!!!"
    #"!!!!!!!                          !!!!!!!!!!"
    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #" "
    <!-- ServerManagerCmd Answer File compatible with Windows Server 2008 -->
    <!-- Usage: ServerManagerCmd -ip Exchange-MBX.xml-->
    <!-- -->
    
    <ServerManagerConfiguration
    Action="Install"
    xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
    
    <!-- Install the Web Server role with default child components -->
    <Role Id="Web-Server"/>
    
    <!-- Install the optional IIS6 Metabase and console -->
    <RoleService Id="Web-Metabase"/>
    <RoleService Id="Web-Lgcy-Mgmt-Console"/>
    <RoleService Id="Web-ISAPI-Ext"/>
    
    <!-- Install auth types for DAV support -->
    <RoleService Id="Web-Basic-Auth"/>
    <RoleService Id="Web-Windows-Auth"/>
    
    </ServerManagerConfiguration>
    

Exchange-ClusMBX.xml

程序

使用記事本建立 XML 回應檔案,自動化 Exchange 環境中的 Exchange 2007 叢集信箱伺服器安裝

  1. 開啟記事本或其他文字編輯器。

  2. 將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .xml 副檔名加以儲存。建議您將檔案命名為 exchange-clusmbx.xml

    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #"!!!!!!  THIS IS NOT A MICROSOFT SUPPORTED XML File.  !!!!!!!"
    #"!!!!!!!      TEST IN A LAB FOR DESIRED OUTCOME      !!!!!!!!"
    #"!!!!!!!                          !!!!!!!!!!"
    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #" "
    <!-- ServerManagerCmd Answer File compatible with Windows Server 2008 -->
    <!-- Usage: ServerManagerCmd -ip Exchange-ClusMBX.xml-->
    <!-- -->
    
    <ServerManagerConfiguration
    Action="Install"
    xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
    
    <!-- Install clustering support -->
    <Feature Id="Failover-Clustering"/>
    
    <!-- Install the Web Server role with default child components -->
    <Role Id="Web-Server"/>
    
    <!-- Install the optional IIS6 Metabase and console -->
    <RoleService Id="Web-Metabase"/>
    <RoleService Id="Web-Lgcy-Mgmt-Console"/>
    <RoleService Id="Web-ISAPI-Ext"/>
    
    <!-- Install auth types for DAV support -->
    <RoleService Id="Web-Basic-Auth"/>
    <RoleService Id="Web-Windows-Auth"/>
    
    </ServerManagerConfiguration>
    

Exchange-UM.xml

程序

使用記事本建立 XML 回應檔案,自動化 Exchange 環境中已安裝 Unified Messaging server role 的 Exchange 2007 伺服器安裝

  1. 開啟記事本或其他文字編輯器。

  2. 將下列程式碼複製到檔案中,並將此檔案以描述性名稱與 .xml 副檔名加以儲存。建議您將檔案命名為 exchange-um.xml

    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #"!!!!!!  THIS IS NOT A MICROSOFT SUPPORTED XML File.  !!!!!!!"
    #"!!!!!!!      TEST IN A LAB FOR DESIRED OUTCOME      !!!!!!!!"
    #"!!!!!!!                          !!!!!!!!!!"
    #"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    #" "
    <!-- ServerManagerCmd Answer File compatible with Windows Server 2008 -->
    <!-- Usage: ServerManagerCmd -ip Exchange-UM.xml-->
    <!-- -->
    
    <ServerManagerConfiguration
    Action="Install"
    xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
    
    <!-- Install the Windows Media Player components -->
    <Feature Id="Desktop-Experience"/>
    
    </ServerManagerConfiguration>
    

相關資訊

如需記載和自動化 Exchange 伺服器組建處理程序的相關資訊,請參閱伺服器安裝和自動化指南

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.