Office 部署工具的設定選項Configuration options for the Office Deployment Tool

有了 Office 部署工具 (ODT),您就能將 Office 365 專業增強版下載並部署到用戶端電腦。ODT 讓您對 Office 安裝作業有更多的控制權︰您可以定義要安裝哪些產品及語言、這些產品的更新方式,以及是否要讓使用者看到安裝過程。本文涵蓋該工具中所有可用的選項。若要了解如何使用該工具,請參閱 Office 部署工具概觀With the Office Deployment Tool (ODT), you can download and deploy Office 365 ProPlus to your client computers. The ODT gives you more control over an Office installation: you can define which products and languages are installed, how those products should be updated, and whether or not to display the install experience to your users. This article covers all the available options in the tool. To learn how to use the tool itself, see Overview of the Office Deployment Tool.

注意

最佳作法: 這篇文章中的選項說明組態檔中的 XML 元素和屬性。Best practice: The options in this article show the XML elements and attributes in the configuration file. 您可以繼續在文字編輯器建立組態檔,但是我們建議您改用 Office 自訂工具You can continue to create the configuration file in a text editor, but we recommend using the Office Customization Tool instead. 透過 Office 自訂工具,您可以在 Web 介面中輕鬆建立和修改組態檔。With the Office Customization Tool, you can easily create and modify configuration files in a web-based interface. 如需詳細資訊,請參閱 Office 部署工具概觀For more details, see Overview of the Office Customization Tool.

標準設定檔範例Example of a standard configuration file

ODT 包含兩個檔案︰setup.exe 及 configuration.xml。若要搭配該工具來作業,您必須編輯設定檔來定義您要的選項,然後從命令列執行 setup.exe。例如,您可以編輯設定檔來下載 32 位元英文版的 Office,或是在自動接受 EULA 但不安裝 Publisher 的情況下安裝 32 位元英文版的 Office。The ODT consists of two files: setup.exe and configuration.xml. To work with the tool, you edit the configuration file to define what options you want, and then run setup.exe from the command line. For example, you can edit the configuration file to download the 32-bit English edition of Office, or you can edit the file to install the 32-bit English edition of Office with the EULA automatically accepted and without Publisher.

建立設定檔時,建議從範例檔案開始,並以環境中適當的選項來更新它。您可以先複製下方範例並貼到文字檔中,以您所選擇的名稱儲存。使用該檔案來修改 XML 和屬性,並使用本文中的其他部分來深入了解有關每個元素和屬性的詳細資料。When creating the configuration file, we recommend starting with an example file and updating it with the appropriate options for your environment. You can start by copying and pasting the example below into a text file and saving it with a name of your choosing. Use the file to modify the XML elements and attributes and use the rest of this article to learn more details about each of the elements and attributes.

這個設定檔包含最常使用的元素和屬性,可以在用戶端電腦上用來下載及安裝 OfficeThis configuration file includes the most-commonly used elements and attributes, and can be used to download and install Office on a client computer

<Configuration>
  <Add SourcePath="\\Server\Share" 
       OfficeClientEdition="32"
       Channel="Broad" >
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
    </Product>
    <Product ID="VisioProRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
    </Product>
  </Add>
  <Updates Enabled="TRUE" 
           UpdatePath="\\Server\Share" />
   <Display Level="None" AcceptEULA="TRUE" />  
  <Logging Level="Standard" Path="%temp%" /> 
</Configuration>
Value 描述Description
Add SourcePath="\\Server\Share"Add SourcePath="\\Server\Share"
Office 會下載到您網路上的 "\\server\share",並使用該位置的安裝檔案來部署。Office will be downloaded to "\\server\share" on your network and deployed using installation files at that location.
Add OfficeClientEdition="32"Add OfficeClientEdition="32"
下載並安裝 Office 32 位元版本Downloads and installs the 32-bit edition of Office
Add Channel="Broad"Add Channel="Broad"
使用半年通道安裝 Office。Office will be installed using the Semi-Annual Channel.
Product ID="O365ProPlusRetail"Product ID="O365ProPlusRetail"
下載並安裝 Office 365 專業增強版。Downloads and installs Office 365 ProPlus.
語言識別碼 ="en-us"Language ID="en-us"
語言識別碼 ="ja-jp"Language ID="ja-jp"
下載並安裝 Office 英文和日文版本。Downloads and installs English and Japanese versions of Office.
Updates Enabled="TRUE"Updates Enabled="TRUE"
Office 會檢查更新。Office will check for updates.
Updates UpdatePath="\\Server\Share"Updates UpdatePath="\\Server\Share"
Office 會在您網路上的 "\server\share" 檢查更新。Office checks for updates at "\server\share" on your network.
Display Level="None" AcceptEULA="TRUE"Display Level="None" AcceptEULA="TRUE"
安裝 Office 時不會顯示使用者介面。When installing Office, no user interface is displayed.
Logging Level="Standard" Path="%temp%"Logging Level="Standard" Path="%temp%"
記錄檔會儲存在 %temp% 資料夾中。Log files are stored in the %temp% folder.

Add 元素Add element

定義要下載或安裝的產品和語言Defines the products and languages to download or install

範例Example

<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="Broad" 
     Version="16.0.8201.2193" >
  <Product ID="O365ProPlusRetail">
    <Language ID="en-us" />
    <Language ID="ja-jp" />
  </Product>
  <Product ID="VisioProRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
  </Product>
</Add>  

SourcePath 屬性 (Add 元素的一部分)SourcePath attribute (part of Add element)

選用。可用來定義 Office 安裝檔案的位置。若 ODT 是以下載模式執行,會定義儲存檔案的位置。若不包含,ODT 會在工具所在的資料夾中尋找安裝檔案,然後再使用 Office 內容傳遞網路 (CDN)。若不包含且 ODT 是以下載模式執行,則 Office 安裝檔案會下載到工具所在的資料夾中。Optional. Defines the location of the Office installation files. If the ODT is run in download mode, defines where to save the files. If not included, the ODT will look for installation files in the same folder as the tool, and then use the Office Content Delivery Network (CDN). If not included and the ODT is run in download mode, the Office installation files are downloaded to the same folder as the tool.

請注意,當您將 Office 下載至已包含該版本 Office 的資料夾時,ODT 會下載遺失的檔案來保留您的網路頻寬。例如,如果您使用 ODT 將英文和德文版的 Office 下載至已包含英文版 Office 的資料夾,則只會下載德文語言套件。Note that when you download Office to a folder that already contains that version of Office, the ODT will conserve your network bandwidth by downloading only the missing files. For example, if you use the ODT to download Office in English and German to a folder that already contains Office in English, only the German language pack will be downloaded.

範例值:Example values:

  • SourcePath="\\server\share"SourcePath="\\server\share"
  • SourcePath="c:\preload\office"SourcePath="c:\preload\office"

Version 屬性 (Add 元素的一部分)Version attribute (part of Add element)

選用。Optional. 預設值為最新版的 Office。The default is the latest available version of Office. 當您使用 Version 屬性時,建議您同時包括 Channel 屬性。When you use the Version attribute, we recommend including the Channel attribute as well. 如果您未包含 Channel 屬性,系統會使用的預設通道,這可能不符合指定的版本。If you don't include the Channel attribute, the default channel will be used, which might not match the specified version.

如果裝置上已安裝 Office 365 專業增強版,則可以使用 Version="MatchInstalled" 來安裝相同版本的 Office,即使有較新版本可用。If Office 365 ProPlus is already installed on a device, you can use Version="MatchInstalled" to install the same version of Office, even if a newer version is available. 此設定可讓您在未將 Office 更新為較新版本的情況下,輕鬆新增語言套件或 Visio 和 Project。This setting can make it easier to add language packs or Visio and Project without updatinging Office to a newer version.

範例值:Example values:

  • Version="16.0.8201.2193"Version="16.0.8201.2193"
  • Version="MatchInstalled"Version="MatchInstalled"

OfficeClientEdition 屬性 (Add 元素的一部分)OfficeClientEdition attribute (part of Add element)

選用。Optional. 定義是否要下載或安裝 32 位元或 64 位元版本的 Office 365 專業增強版。Defines whether the 32-bit or 64-bit edition of Office 365 ProPlus is downloaded or installed. 如果未在裝置上安裝 Office,且未指定 OfficeClientEdition,ODT 會預設為 64 位版本,除非裝置執行 32 位版本的 Windows 或 RAM 少於 4 GB。。If Office is not installed on the device and OfficeClientEdition is not specified, the ODT will default to the 64-bit edition, unless the device is running a 32-bit edition of Windows or has less than 4 GB RAM. 如果已安裝 Office 但未指定 OfficeClientEdition,則 ODT 將比對現有的 Office 安裝架構。If Office is installed and OfficeClientEdition not specified, the ODT will match the architecture of the existing installation of Office. 如果已安裝 Office 且已指定 OfficeClientEdition,則它必須符合已安裝的架構。If Office is installed and OfficeClientEdition is specified, then it must match the already installed architecture. 如果未符合,安裝會因為不支援混合式架構而失敗。If it doesn't, the installation will fail, since mixed architectures are not supported.

允許的值:Allowed values:

  • OfficeClientEdition="64"OfficeClientEdition="64"
  • OfficeClientEdition="32"OfficeClientEdition="32"

Channel 屬性 (Add 元素的一部分)Channel attribute (part of Add element)

選用。Optional. Defines which channel to use for installing Office.Defines which channel to use for installing Office. 如果未在裝置上安裝 Office,則 Office 365 專業增強版的 Channel 屬性的預設設定為 [Broad]****。If Office is not installed on the device, the default setting for the Channel attribute is Broad for Office 365 ProPlus. 如果已在裝置上安裝 Office,但未指定 Channel 屬性,則 ODT 將比對現有安裝的通道。If Office is installed on the device and the channel attribute is not specified, the ODT will match the channel of the existing installation.

如果 Visio Online 方案 2 (先前稱為 Visio Pro for Office 365) 和 Project Online 電腦版用戶端與 Office 365 專業增強版一起安裝,則預設設定為 [Broad]****。If Visio Online Plan 2 (previously named Visio Pro for Office 365) and Project Online Desktop client are installed along with Office 365 ProPlus, the default setting is Broad. 如果 Visio Online 方案 2 和 Project Online 電腦版用戶端是獨立於 Office 365 專業增強版的部署,則預設設定為 [Monthly]****。If Visio Online Plan 2 and Project Online Desktop Client are deployed without Office 365 ProPlus, the default setting is Monthly.

如需更新通道的詳細資訊,請參閱 Office 365 專業增強版的更新通道概觀For more information about update channels, see Overview of update channels for Office 365 ProPlus.

允許的值:Allowed values:

  • Channel="Monthly"Channel="Monthly"
  • Channel="Broad"Channel="Broad"
  • Channel="Targeted"Channel="Targeted"

半年通道使用 "Broad",半年通道 (已設定目標) 則使用 "Targeted"。Use "Broad" for Semi-Annual Channel and "Targeted" for Semi-Annual Channel (Targeted).

如果您正在部署 Office 專業增強版 2019,也就是 Office 的大量授權版本,那麼您需要使用不同的更新通道:PerpetualVL2019。如需詳細資訊,請參閱 Office 2019 的更新通道If you're deploying Office Professional Plus 2019, which is a volume licensed version of Office, there is a different update channel you need to use: PerpetualVL2019. For more information, see Update channel for Office 2019.

DownloadPath 屬性 (Add 元素的一部分)DownloadPath attribute (part of Add element)

選用。Optional. 定義安裝檔案從何處下載。Defines where the installation files are downloaded from. 最常用於將特定的 Office 語言和產品從您網路上的中央位置發佈至其他位置。Most commonly used to distribute specific languages and products for Office from a central location on your network to another location. 若要使用這項設定,請在下載模式中執行 ODT。To use this setting, run the ODT in download mode. 如果不包含,則會從 Office CDN 下載檔案。If not included, the files are downloaded from the Office CDN. 請注意,使用 DownloadPath 時,必須指定版本,如範例中所示。Note that you must specify a version when using DownloadPath, as shown in the example.

範例值:Example values:

  • DownloadPath="\\servera\share"DownloadPath="\\servera\share"

範例Example

<Configuration> 
  <Add SourcePath="\\serverb\share" OfficeClientEdition="64" Version="16.0.6741.2056" DownloadPath="\\servera\share"> 
    <Product ID="O365ProPlusRetail" > 
      <Language ID="en-us" />      
    </Product> 
  </Add> 
</Configuration>

AllowCdnFallback 屬性 (Add 元素的一部分)AllowCdnFallback attribute (part of Add element)

選用。若要使用 Office CDN 作為語言套件的備份來源,請在組態檔中包含 "AllowCdnFallback" 屬性,如範例中所示。Optional. To use the Office CDN as a backup source for language packs, include the "AllowCdnFallback" attribute in the configuration file, as shown in the example.

在安裝語言時,ODT 會先尋找 SourcePath 屬性中指定位置的來源檔案。如果語言套件在該位置無法使用,「且」**** AllowCdnFallback 設定會設為 True,則 ODT 會使用 Office CDN 中的來源檔案。When installing languages, the ODT looks first for source files in the location specified in the SourcePath attribute. If the language pack isn't available at that location and the AllowCdnFallback setting is set to True, then the ODT will use source files from the Office CDN.

允許的值:Allowed values:

  • AllowCdnFallback="True"AllowCdnFallback="True"
  • AllowCdnFallback="False"AllowCdnFallback="False"

範例Example

<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="Broad" 
     AllowCdnFallback="True">
  <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <Language ID="ja-jp" />
  </Product>
</Add>  

MigrateArch 屬性 (Add 元素的一部分)MigrateArch attribute (part of Add element)

選用。Optional. 如果設為 TRUE,則您的現有 Office 365 專業增強版安裝將會變更為 OfficeClientEdition 屬性中指定的架構 (有時候稱為位元)。If set to TRUE, then your existing installation of Office 365 ProPlus will be changed to the architecture (sometimes referred to as the bitness) that is specified in the OfficeClientEdition attribute. 例如,您可以使用這個屬性將 32 位元 Office 365 專業增強版安裝變更為 64 位元安裝。For example, you can use this to change a 32-bit installation of Office 365 ProPlus to a 64-bit installation.

如需使用 MigrateArch 的詳細資訊,請參閱 將 Office 365 專業增強版安裝從 32 位元變更為 64 位元For more information about using MigrateArch, see Change an Office 365 ProPlus installation from 32-bit to 64-bit.

OfficeMgmtCOM 屬性 (Add 元素的一部分)OfficeMgmtCOM attribute (part of Add element)

選用。Optional. 若要讓 Configuration Manager 能夠管理 Office 365 用戶端更新,必須在安裝 Office 的電腦上啟用 Office COM 物件。For Configuration Manager to be able to manage Office 365 client updates, an Office COM object needs to be enabled on the computer where Office is installed. 如果設為 TRUE,則 Office COM 物件會從 Configuration Manager 採用命令來下載及安裝用戶端更新。If set to TRUE, the Office COM object takes commands from Configuration Manager to download and install client updates. 啟用 Office COM 物件時,Office 365 專業增強版 [帳戶] 頁面上的 [立即更新] 選項會針對用戶端裝置停用。When the Office COM object is enabled, the Update Now option on the Account page for Office 365 ProPlus is automatically disabled for client devices.

如需詳細資訊,請參閱使用 Microsoft Endpoint Configuration Manager 管理 Office 365 專業增強版的更新For more information, see Manage updates to Office 365 ProPlus with System Center Configuration Manager.

允許的值:Allowed values:

  • OfficeMgmtCOM="True"OfficeMgmtCOM="True"
  • OfficeMgmtCOM="False"OfficeMgmtCOM="False"

範例Example

<Configuration>
  <Add OfficeClientEdition="64" Channel="Monthly" OfficeMgmtCOM="True" >
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
    </Product>
  </Add>  
  <Updates Enabled="True"  /> 
</Configuration>

Product 元素Product element

定義要下載或安裝的產品。如果您定義了多個產品,產品會依照設定檔中的順序安裝。第一個產品會決定 [Microsoft Office 初次執行體驗] 的內容。Defines which products to download or install. If you define multiple products, the products are installed in the order in the configuration file. The first product determines the context for the Microsoft Office First Run Experience.

您也可以使用 Product 元素,來為現有的 Office 365 專業增強版安裝新增語言套件。You can also use the Product element to add language packs to existing installations of Office 365 ProPlus. 如需了解如何進行的詳細資料,包括範例組態檔,請參閱為現有的 Office 365 專業增強版部署新增語言For more details on how, including an example configuration file, see Deploy languages to existing installations of Office 365 ProPlus.

範例Example

<Product ID="O365ProPlusRetail">
  <Language ID="en-us" />
  <Language ID="ja-jp" />
</Product>
<Product ID="VisioProRetail">
  <Language ID="en-us" />
  <Language ID="ja-jp" />
</Product>

ID 屬性 (Product 元素的一部分)ID attribute (part of Product element)

必要。定義要下載或安裝的產品識別碼。Required. Defines the ID of the product to download or install.

範例值:Example values:

  • ID="O365ProPlusRetail"ID="O365ProPlusRetail"
  • ID="VisioProRetail"ID="VisioProRetail"
  • ID="ProjectProRetail"ID="ProjectProRetail"

如需所有支援的產品識別碼清單,請參閱隨選即用的 Office 部署工具所支援的產品識別碼For a list of all supported product IDs, see Product IDs that are supported by the Office Deployment Tool for Click-to-Run

Language 元素Language element

定義要下載或安裝的語言。如果您定義了多種語言,設定檔中的第一種語言會決定殼層 UI 文化特性 (包括捷徑、右鍵操作功能表及工具提示)。如果您在初始安裝後決定要變更 Shell UI 語言,則必須解除安裝 Office 並重新安裝。Defines which languages to download or install. If you define multiple languages, the first language in the configuration file determines the Shell UI culture, including shortcuts, right-click context menus, and tooltips. If you decide that you want to change the Shell UI language after an initial installation, you have to uninstall and reinstall Office.

請注意,如果 Office 不支援該語言或 ODT 在本機來源檔案中找不到正確的語言套件,則 MatchOS 和 MatchInstalled 無法安裝作業系統語言。Note that MatchOS and MatchInstalled cannot install the operating system languages if Office doesn't support that language or if the ODT cannot find the correct language pack in the local source files. 為了協助解決此問題,建議您指定備份語言,以及語言套件的備份來源位置。To help address this issue, we recommend that you specify a backup language and and a backup source location for the language pack. 若要這麼做,請使用 Fallback 屬性和 AllowCdnFallBack 屬性。To do so, use the Fallback attribute and AllowCdnFallBack attribute. 如需詳細資料,請參閱部署語言概觀For more details, see Overview of deploying languages.

範例Example

<Product ID="O365ProPlusRetail">
  <Language ID="en-us" />
  <Language ID="ja-jp" />
</Product>
<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="Broad" 
     AllowCdnFallback="True">
  <Product ID="O365ProPlusRetail">
     <Language ID="MatchInstalled" />
     <Language ID="MatchOS" Fallback="en-us" />
  </Product>
</Add>  

ID 屬性 (Language 元素的一部分)ID attribute (part of Language element)

定義要下載或安裝的語言 ID。必要。Defines the ID of the language to download or install. Required.

範例值Example values

  • ID="en-us"ID="en-us"
  • ID="ja-jp"ID="ja-jp"
  • ID="MatchOS"ID="MatchOS"
  • ID="MatchPreviousMSI"ID="MatchPreviousMSI"

如需所有語言的清單,請參閱語言、文化代碼和隨附的校訂語言For a list of all languages, see Languages, culture codes, and companion proofing languages.

如需關於 MatchPreviousMSI 的詳細資訊,請參閱升級至 Office 365 專業增強版時,移除 Office 現有的 MSI 版本For more information about MatchPreviousMSI, see Remove existing MSI versions of Office when upgrading to Office 365 ProPlus.

Fallback 屬性 (Language 元素的一部分)Fallback attribute (part of Language element)

使用 MatchOS 時,建議您指定當 Office 不支援相符語言、或在本機來源檔案中找不到相符語言時,所要安裝的遞補語言。若要這麼做,請使用 "Fallback" 屬性。如需詳細資訊,請參閱安裝與作業系統相同的語言When using MatchOS, we recommend that you specify a fallback language to install when a matched language isn't supported by Office or can't be found in the local source files. To do so, use the "Fallback" attribute. For more details, see Install the same languages as the operating system.

範例值:Example values:

  • Fallback="en-us"Fallback="en-us"
  • Fallback="ja-jp"Fallback="ja-jp"

Display 元素Display element

定義安裝 Office 時使用者看到的畫面。Defines what the user sees when Office is installed.

範例Example

<Display Level="None" AcceptEULA="TRUE" />  

Level 屬性 (Display 元素的一部分)Level attribute (part of Display element)

選用。如果將 Level 設定為 None,安裝 Office 時不會有使用者介面︰不會顯示進度列、完成畫面、錯誤訊息或其他使用者介面。Optional. If Level is set to None, Office is installed with no user interface: no progress bars, completion screens, error messages, or other user interface are displayed.

如果將 Level 設定為 Full,則會以標準的安裝體驗來安裝 Office。If Level is set to Full, Office is installed with the normal installation experience.

預設值為 FullDefault is Full.

允許的值:Allowed values:

  • Level="None"Level="None"
  • Level="Full"Level="Full"

AcceptEULA 屬性 (Display 元素的一部分)AcceptEULA attribute (part of Display element)

選用。如果將 AcceptEULA 設定為 TRUE,則使用者不會看到 [Microsoft 軟體授權條款] 對話方塊。如果此屬性設為 FALSE 或不包含此屬性,使用者可能會看到「Microsoft 軟體授權條款」對話方塊。建議系統管理員將 AcceptEULA 設定為 TRUEOptional. If AcceptEULA is set to TRUE, the user does not see a Microsoft Software License Terms dialog box. If this attribute is set to FALSE or is not included, the user may see a Microsoft Software License Terms dialog box. We recommend that administrators set AcceptEULA to TRUE.

預設值為 FALSEDefault is FALSE.

允許的值:Allowed values:

  • AcceptEULA="TRUE"AcceptEULA="TRUE"
  • AcceptEULA="FALSE"AcceptEULA="FALSE"

注意

如果您部署 1803 版之前的 Office 版本,則僅在您透過使用者帳戶安裝時,才會套用此設定。Microsoft Endpoint Configuration Manager 和使用 SYSTEM 帳戶安裝的其他軟體發佈工具不會套用此設定。If you deploy a version of Office before Version 1803, this setting will be applied only if you install with the user's account. System Center Configuration Manager and other software distribution tools that use the SYSTEM account for installation will not apply the setting.

ExcludeApp 元素ExcludeApp element

定義不應安裝哪些 Office 365 專業增強版產品。請注意,當您安裝 Office 365 專業增強版、Word、Excel、PowerPoint、Publisher、Visio 和 Skype 時,會自動安裝 OneDrive。如果您不想將這些應用程式與 OneDrive 一起安裝,請使用 ExcludeApp 元素來將它移除。如需詳細資訊,請參閱安裝 Office 365 專業增強版或其他應用程式時排除 OneDriveDefines which Office 365 ProPlus products should not be installed. Note that OneDrive is automatically installed when you install Office 365 ProPlus, Word, Excel, PowerPoint, Publisher, Visio, and Skype. If you don't want OneDrive installed with those applications, use the ExcludeApp element to remove it. For more details, see Exclude OneDrive when installing Office 365 ProPlus or other applications.

範例Example

<Add SourcePath="\\Server\Share" 
     OfficeClientEdition="32"
     Channel="Broad" >
  <Product ID="O365ProPlusRetail">
    <Language ID="en-us" />
    <Language ID="ja-jp" />
    <ExcludeApp ID="Publisher" />
  </Product>
</Add>  

如果使用具有 ExcludeApp 的設定檔在已安裝 Office 365 專業增強版的裝置上安裝 Office,則會根據語言清單來個別對待 ExcludeApp 設定:If a configuration file with ExcludeApp is used to install Office on a device that already has Office 365 ProPlus installed, the ExcludeApp setting is treated differently based on the list of languages:

  • 如果組態檔中的語言清單包含所有安裝的語言,則檔案中的 ExcludeApp 設定會取代裝置上任何現有的 ExcludeApp 設定。If the list of languages in the configuration file includes all the installed languages, then the ExcludeApp setting in the file replaces any existing ExcludeApp setting on the device. 如果設定檔中的語言清單同時包含所有已安裝的語言和其他語言,也會如此取代。This is also true if the list of languages in the configuration file includes both all the installed languages and additional languages.
  • 如果設定檔中的語言清單不包含所有安裝語言,則設定檔中的 ExcludeApp 設定將會與裝置上的 ExcludeApp 設定合併。If the list of languages in the configuration file doesn't include all the installed languages, then the ExcludeApp setting in the configuration file will be combined with the ExcludeApp setting on the device.

ID 屬性 (ExcludeApp 元素的一部分)ID attribute (part of ExcludeApp element)

必要。定義不應安裝之產品的 ID。Required. Defines the ID of the product that should not be installed.

允許的值:Allowed values:

  • ID="Access"ID="Access"
  • ID="Excel"ID="Excel"
  • ID="Groove"ID="Groove"
  • ID="Lync"ID="Lync"
  • ID="OneDrive"ID="OneDrive"
  • ID="OneNote"ID="OneNote"
  • ID="Outlook"ID="Outlook"
  • ID="PowerPoint"ID="PowerPoint"
  • ID="Publisher"ID="Publisher"
  • ID="Teams"ID="Teams"
  • ID="Word"ID="Word"

對於商務用 OneDrive,請使用 Groove。對於商務用 Skype,請使用 LyncFor OneDrive for Business, use Groove. For Skype for Business, use Lync.

如需有關 Microsoft Teams 的詳細資訊,請參閱使用 Office 365 專業增強版部署 Microsoft TeamsFor more information about Microsoft Teams, see Deploy Microsoft Teams with Office 365 ProPlus.

Logging 元素Logging element

定義 ODT 記錄的選項。Defines options for ODT logging.

範例Example

<Logging Level="Standard" 
         Path="%temp%" />

Level 屬性 (Logging 元素的一部分)Level attribute (part of Logging element)

選用。開啟或關閉記錄功能。預設值為 StandardOptional. Turns logging on or off. Default is Standard.

允許的值:Allowed values:

  • Level="Off"Level="Off"
  • Level="Standard"Level="Standard"

Path 屬性 (Logging 元素的一部分)Path attribute (part of Logging element)

選用。定義記錄檔的位置。預設值為 %temp%Optional. Defines the location of the log files. Default is %temp%.

範例值:Example values:

  • Path="%temp%"Path="%temp%"
  • Path="\\server\share\userlogs"Path="\\server\share\userlogs"

Property 元素Property element

定義某些 Office 行為和屬性。Defines certain Office behaviors and properties.

範例Example

<Property Name="FORCEAPPSHUTDOWN" Value="FALSE"/>
<Property Name="SharedComputerLicensing" Value="1"/>
<Property Name="SCLCacheOverride" Value="1" />
<Property Name="SCLCacheOverrideDirectory" Value="\\server\share\%username%" />
<Property Name="PinIconsToTaskbar" Value="TRUE"/>

Name 屬性 (Property 元素的一部分)Name attribute (part of Property element)

必要。定義您想要設定其值的特定屬性。Required. Defines the specific property whose value you want to set.

Value 屬性 (Property 元素的一部分)Value attribute (part of Property element)

定義具名屬性的值。Defines the value of the named property.

AUTOACTIVATE 屬性 (Property 元素的一部分)AUTOACTIVATE property (part of Property element)

由於 Office 365 專業增強版設定為會自動啟用,因此您不應該設定 Office 365 專業增強版產品的這個屬性。針對其他產品,您可以將 AUTOACTIVATE 設定為 1 來自動啟用該產品。Because Office 365 ProPlus is set to activate automatically, you should not set this property for Office 365 ProPlus products. For other products, you can set AUTOACTIVATE to 1 to have the product activate automatically.

選用。預設值為 0Optional. Default is 0.

允許的值:Allowed values:

  • Property Name="AUTOACTIVATE" Value="0"Property Name="AUTOACTIVATE" Value="0"
  • Property Name="AUTOACTIVATE" Value="1"Property Name="AUTOACTIVATE" Value="1"

FORCEAPPSHUTDOWN 屬性 (Property 元素的一部分)FORCEAPPSHUTDOWN property (part of Property element)

設定為 TRUE 時,系統會強制關閉所有封鎖 Office 安裝作業的 App。資料可能會遺失。When set to TRUE, forces any apps that are blocking the install of Office to shut down. Data loss may occur.

選用。預設值為 FALSEOptional. Default is FALSE.

允許的值:Allowed values:

  • Property Name="FORCEAPPSHUTDOWN" Value="FALSE"Property Name="FORCEAPPSHUTDOWN" Value="FALSE"
  • Property Name="FORCEAPPSHUTDOWN" Value="TRUE"Property Name="FORCEAPPSHUTDOWN" Value="TRUE"

PACKAGEGUID 屬性 (Property 元素的一部分)PACKAGEGUID property (part of Property element)

依預設,由 ODT 建立的所有 App-V 套件會共用相同的 App-V 套件識別碼。系統管理員可以使用 PACKAGEGUID 來指定不同的套件識別碼。這可讓您將 Office 的多個 App-V 套件發佈到 App-V 管理伺服器。不過,這無法讓您將多個 Office App-V 套件部署到同一部電腦。您可以使用 ODT 來建立 Office 365 專業增強版的 App-V 套件。不支援建立適用於 Office 專業增強版或 Office 標準版大量授權版本的套件。By default, App-V packages created by the ODT share the same App-V Package ID. Administrators can use PACKAGEGUID to specify a different Package ID. This allows you to publish multiple App-V packages of Office to an App-V Management Server. But, this doesn't enable you to deploy more than one Office App-V package to a single computer. You can use the ODT to create App-V packages for Office 365 ProPlus. Creating packages for the volume-licensed versions of Office Professional Plus or Office Standard is not supported.

套件識別碼必須遵循範例格式,且只能使用這些字元︰0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F The Package ID must follow the format of the example and can only use these characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

如果您使用其他字元,將使用預設套件識別碼建立 App-V 套件。If you use any other characters, the App-V package is created with the default Package ID.

選用。Optional.

範例值:Example values:

  • Property Name="PACKAGEGUID" Value="12345678-ABCD-1234-ABCD-1234567890AB"Property Name="PACKAGEGUID" Value="12345678-ABCD-1234-ABCD-1234567890AB"

SharedComputerLicensing 屬性 (Property 元素的一部分)SharedComputerLicensing property (part of Property element)

若您使用遠端桌面服務將 Office 365 專業增強版部署到共用的電腦上,請將 SharedComputerLicensing 設為 1。Set SharedComputerLicensing to 1 if you deploy Office 365 ProPlus to shared computers by using Remote Desktop Services.

如需詳細資訊,請參閱 Office 365 專業增強版的共用電腦啟用概觀For more information, see Overview of shared computer activation for Office 365 ProPlus.

選用。預設值為 0Optional. Default value is 0.

允許的值:Allowed values:

  • Property Name="SharedComputerLicensing" Value="0"Property Name="SharedComputerLicensing" Value="0"
  • Property Name="SharedComputerLicensing" Value="1"Property Name="SharedComputerLicensing" Value="1"

SCLCacheOverride 屬性 (Property 元素的一部分)SCLCacheOverride property (part of Property element)

如果您使用共用電腦啟動,且想要漫遊授權權杖,請將 SCLCacheOverride 設為 1。搭配使用 SCLCacheOverrideDirectory。Set SCLCacheOverride to 1 if you're using shared computer activation and you want to roam the licensing token. Use in conjunction with SCLCacheOverrideDirectory.

如需詳細資訊,請參閱 Office 365 專業增強版的共用電腦啟用概觀For more information, see Overview of shared computer activation for Office 365 ProPlus.

選用。預設值為 0Optional. Default value is 0.

允許的值:Allowed values:

  • Property Name="SCLCacheOverride" Value="0"Property Name="SCLCacheOverride" Value="0"
  • Property Name="SCLCacheOverride" Value="1"Property Name="SCLCacheOverride" Value="1"

SCLCacheOverrideDirectory 屬性 (Property 元素的一部分)SCLCacheOverrideDirectory property (part of Property element)

如果您使用共用電腦啟動,且想要漫遊授權權杖,請設定 SCLCacheOverrideDirectory 來指定授權權杖的資料夾位置。搭配使用 SCLCacheOverride。Set SCLCacheOverrideDirectory to specify a folder location for the licensing token if you're using shared computer activation and you want to roam the licensing token. Use in conjunction with SCLCacheOverride.

如需詳細資訊,請參閱 Office 365 專業增強版的共用電腦啟用概觀For more information, see Overview of shared computer activation for Office 365 ProPlus.

選用。Optional.

範例值:Example values:

  • Property Name="SCLCacheOverrideDirectory" Value="%appdata%\Microsoft"Property Name="SCLCacheOverrideDirectory" Value="%appdata%\Microsoft"
  • Property Name="SCLCacheOverrideDirectory" Value="\\server\share\%username%"Property Name="SCLCacheOverrideDirectory" Value="\\server\share\%username%"

PinIconsToTaskBar 屬性 (Property 元素的一部分)PinIconsToTaskBar property (part of Property element)

定義是否要將 Office 產品的捷徑圖示新增至 Windows 7、和 8.1 中的 Windows 工作列。Defines whether shortcut icons for Office products are added to the Windows taskbar in Windows 7 and 8.1. 如果您使用系統帳戶來安裝 Office (以 Microsoft Endpoint Configuration Manager 進行部署時常見的做法),即使此屬性設定為 True 也不會釘選圖示。If you install Office using a system account, which is common when deploying with System Center Configuration Managers, the icons will not be pinned even if this property is set to True.

選用。預設值為 TrueOptional. The default value is True.

允許的值:Allowed values:

  • Property Name="PinIconsToTaskbar" Value="FALSE"Property Name="PinIconsToTaskbar" Value="FALSE"
  • Property Name="PinIconsToTaskbar" Value="TRUE"Property Name="PinIconsToTaskbar" Value="TRUE"

Remove 元素Remove element

定義要從先前安裝的 Office 365 專業增強版中移除的產品和語言。Defines which products and languages to remove from a previous installation of Office 365 ProPlus. 若要移除已安裝的語言,您必須同時提供產品和語言,如範例所示。To remove an installed language, you must provide both the product and the language, as in the example. 若要移除所有已安裝的語言,請勿包含語言屬性。To remove all the installed languages, do not include the language attribute. 在該情況下,ODT 會自動探索並移除產品的所有已安裝語言。In that case, the ODT automatically discovers and removes all installed languages for the product.

如需詳細資訊,請參閱 Office 部署工具概觀For more information, see Overview of the Office Deployment Tool.

範例Example

<Remove All="FALSE">
  <Product ID="O365ProPlusRetail" >
    <Language ID="es-es" />
  </Product>
</Remove>

All 屬性 (Remove 元素的一部分)All attribute (part of Remove element)

若設為 TRUE,將移除所有 Office 365 專業增強版的產品和語言,包含 Project 和 Visio。If set to TRUE, all Office 365 ProPlus products and languages will be removed, including Project and Visio.

選用。預設值為 FALSEOptional. The default value is FALSE.

允許的值:Allowed values:

  • All="FALSE"All="FALSE"
  • All="TRUE"All="TRUE"

Updates 元素Updates element

定義安裝 Office 之後如何更新。Defines how Office is updated after it's installed.

範例Example

<Updates Enabled="TRUE" 
         UpdatePath="\\Server\Share\"
         Channel="Broad" />

Enabled 屬性 (Updates 元素的一部分)Enabled attribute (part of Updates element)

如果設為 TRUE,則 Office 會檢查更新。如果設為 FALSE,則不會檢查 Office 更新,但使用者可以移至 [檔案]**** > [帳戶]**** > [更新選項]**** > [立即更新]**** 來檢查更新。If set to TRUE, Office will check for updates. If set to FALSE, Office won't check for updates, but the user can check for updates by going to File > Account > Update Options > Update Now.

選用。預設值為 TRUEOptional. The default value is TRUE.

允許的值:Allowed values:

  • Enabled="TRUE"Enabled="TRUE"
  • Enabled="FALSE"Enabled="FALSE"

UpdatePath 屬性 (Updates 元素的一部分)UpdatePath attribute (part of Updates element)

定義 Office 更新的來源。若未設定 UpdatePath 或將其設為空白 (""),來源位置會被設定為 Office 內容傳遞網路 (CDN)。UpdatePath 可指定 Office 安裝檔案的網路、本機或 HTTP 來源路徑。環境變數則可用於網路或本機路徑。Defines where the updates for Office come from. If UpdatePath is not set or is set to empty (""), the location is set to the Office Content Delivery Network (CDN). UpdatePath can specify a network, local, or HTTP path of a source for Office installation files. Environment variables can be used for network or local paths.

若您以 Office 系統管理範本檔案 (ADMX/ADML)來使用群組原則,就可以使用「更新路徑」**** 原則設定來設定** UpdatePath**。您可以在 「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set UpdatePath by using the Update Path policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates.

選用。Optional.

範例值:Example values:

TargetVersion 屬性 (Updates 元素的一部分)TargetVersion attribute (part of Updates element)

定義要將 Office 更新到哪個版本。若未設定 TargetVersion 或將其設為空白 (""),Office 會透過特定的更新路徑更新到最新版本。若將 TargetVersion 設為特定的組建編號,Office 會嘗試更新到該版本。Defines which version Office updates to. If TargetVersion is not set or is set to empty (""), Office updates to the most recent version from the specified update path. If TargetVersion is set to a specific build number, Office attempts to update to that version.

若您以 Office 系統管理範本檔案 (ADMX/ADML) 來使用群組原則,就可以使用「目標版本」**** 原則設定來設定 TargetVersion。您可以在「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set TargetVersion by using the Target Version policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates.

選用。Optional.

範例值:Example values:

  • TargetVersion="15.1.2.3"TargetVersion="15.1.2.3"
  • TargetVersion=""TargetVersion=""

Deadline 屬性 (Updates 元素的一部分)Deadline attribute (part of Updates element)

定義必須套用更新的期限。期限會以國際標準時間 (UTC) 指定。您可以搭配「目標版本」**** 使用 Deadline,以確保 Office 會在特定日期之前更新成特定版本。建議您將期限設在至少一星期之後,給予使用者充足時間來安裝更新。Defines a deadline by which updates must be applied. The deadline is specified in Coordinated Universal Time (UTC). You can use Deadline with Target Version to make sure that Office is updated to a particular version by a particular date. We recommend that you set the deadline at least a week in the future to allow users time to install the updates.

在期限之前,使用者會收到多次安裝更新的提醒。若到了期限仍未更新 Office,使用者就會看到將在 15 分鐘後套用更新的通知。這可讓使用者有機會儲存正在處理的 Office 文件,並關閉所有開啟的 Office 程式。若使用者不關閉 Office 程式,到了 15 分鐘後程式將自動關閉,這可能會導致資料遺失。Prior to the deadline, users receive multiple reminders to install the updates. If Office isn't updated by the deadline, users see a notification that the updates will be applied in 15 minutes. This gives users the opportunity to save the Office documents that they are working on and to close any Office programs that are open. If users don't close the Office programs,the programs are closed automatically when the 15 minutes are up, which might result in data loss.

Office 程式關閉後,會自動套用更新。期限只適用於一組更新。因此,如果您想利用期限來確保 Office 永遠處於最新版本,就必須在每次 Office 有新的更新時變更期限。After the Office programs are closed, the updates are applied automatically. The deadline only applies to one set of updates. If you want to use a deadline to make sure that Office is always up-to-date, you must change the deadline every time a new update for Office is available.

若要使用此屬性,Office 必須至少具有 Service Pack 1 (版本 15.0.4569.1507)。若您以 Office 系統管理範本檔案 (ADMX/ADML) 來使用群組原則,就可以使用「更新期限」**** 原則設定來設定 Deadline。您可以在「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。To use this attribute, Office must be running at least Service Pack 1 (version 15.0.4569.1507). If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set Deadline by using the Update Deadline policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates.

選用。Optional.

範例值:Example value:

  • Deadline="05/16/2014 18:30"Deadline="05/16/2014 18:30"

Channel 屬性 (Updates 元素的一部分)Channel attribute (part of Updates element)

定義安裝 Office 之後要用的更新通道。請注意,有兩個通道屬性︰[新增] 項目的通道用來指定安裝 Office 時的更新通道,[更新] 項目的通道用來變更現有的 Office 安裝通道。Defines which channel to use for updating Office after it is installed. Note that there are two channel attributes: the channel for the Add element is used to specify an update channel while installing Office, and the channel for the Update element is used to change the channel for an existing installation of Office.

如需更新通道的詳細資訊,請參閱 Office 365 專業增強版的更新通道概觀For more information about update channels, see Overview of update channels for Office 365 ProPlus.

若您以 Office 系統管理範本檔案 (ADMX/ADML) 來使用群組原則,就可以使用「更新通道」**** 原則來設定 Channel。您可以在「電腦設定\原則\系統管理範本\Microsoft Office 2016 (電腦)\更新」底下找到此原則設定。若啟用,此群組原則設定會優先於使用 Office 部署工具設定的 Channel 值。If you use Group Policy with the Administrative Template files (ADMX/ADML) for Office, you can set Channel by using the Update Channel policy setting. You can find this policy setting under Computer Configuration\Policies\Administrative Templates\Microsoft Office 2016 (Machine)\Updates. If enabled, this Group Policy setting takes precedence over the Channel value set by using the Office Deployment Tool.

選用。Office 365 專業增強版預設為 Broad (廣泛)、Visio Online Plan 2 (先前稱為 Visio Pro for Office 365) 和 Project Online Desktop Client 預設為 Monthly (每月)。Optional. The default is Broad for Office 365 ProPlus and Monthly for Visio Online Plan 2 (previously named Visio Pro for Office 365) and Project Online Desktop Client.

允許的值:Allowed values:

  • Channel="Monthly"Channel="Monthly"
  • Channel="Broad"Channel="Broad"
  • Channel="Targeted"Channel="Targeted"

半年通道使用 "Broad",半年通道 (已設定目標) 則使用 "Targeted"。Use "Broad" for Semi-Annual Channel and "Targeted" for Semi-Annual Channel (Targeted).

如果您正在部署 Office 專業增強版 2019,也就是 Office 的大量授權版本,那麼您需要使用不同的更新通道:PerpetualVL2019。如需詳細資訊,請參閱 Office 2019 的更新通道If you're deploying Office Professional Plus 2019, which is a volume licensed version of Office, there is a different update channel you need to use: PerpetualVL2019. For more information, see Update channel for Office 2019.

RemoveMSI 元素RemoveMSI element

選用。Optional.

在安裝指定的產品 (例如 Office 365 專業增強版) 之前,指定是否要從電腦將使用 Windows Installer (MSI) 安裝的任何 2010、2013 或 2016 版本 Office、Visio 與 Project 解除安裝。Specifies whether any 2010, 2013, or 2016 versions of Office, Visio, and Project that were installed using Windows Installer (MSI) are uninstalled from the computer prior to the installation of the specified product, such as Office 365 ProPlus.

如需關於使用 RemoveMSI 的詳細資訊,請參閱升級至 Office 365 專業增強版時,移除 Office 現有的 MSI 版本For more information about using RemoveMSI, see Remove existing MSI versions of Office when upgrading to Office 365 ProPlus.

IgnoreProduct 屬性 (RemoveMSI 元素的一部分)IgnoreProduct attribute (part of RemoveMSI element)

如果指定識別碼,則不會從電腦將該 Windows Installer (MSI) 產品解除安裝。If an ID is specified, that Windows Installer (MSI) product won't be uninstalled from the computer.

選用。Optional.

範例值:Example values:

  • IgnoreProduct ID="VisPro"IgnoreProduct ID="VisPro"
  • IgnoreProduct ID="PrjPro"IgnoreProduct ID="PrjPro"

AppSettings 元素AppSettings element

定義 Office 365 專業增強版的應用程式設定,包括 VBA 巨集通知、預設檔案位置和預設檔案格式。若要建立組態檔和應用程式設定,建議您使用適用於隨選即用的 Office 自訂工具,這是包含完整使用者介面的 Web 應用程式。您也可以使用此工具,以深入了解可用的應用程式設定。Defines application settings for Office 365 ProPlus, including VBA Macro notifications, default file locations, and default file format. To create a configuration file with application settings, we recommend you use the Office Customization Tool for Click-to-Run, a web application with a full user interface. You can also use the tool to learn more about the available application settings.

如需應用程式設定的詳細資訊,請參閱套用應用程式設定將應用程式設定套用至現有的 Office 安裝For more details on application settings, see Apply application settings and Apply application settings to an existing installation of Office.

選用。Optional.

範例Example

  <AppSettings>
    <User Key="software\microsoft\office\16.0\excel\security"
          Name="vbawarnings" 
          Value="3" 
          Type="REG_DWORD" 
          App="excel16" 
          Id="L_VBAWarningsPolicy" />
  </AppSettings>