从本地源部署 Office 365 专业增强版Deploy Office 365 ProPlus from a local source

按照本文中的步骤使用 Office 部署工具 (ODT) 从网络上的共享文件夹向客户端计算机部署 Office 365 专业增强版。Follow the steps in this article to deploy Office 365 ProPlus to client computers from a shared folder on your network by using the Office Deployment Tool (ODT).

准备工作Before you begin

确保用户在其客户端设备上拥有本地管理员权限。Make sure your users have local admin privileges on their client devices. 如果没有,应使用标准部署工具和过程来安装 Office。If that is not the case, then you should use your standard deployment tools and processes to install Office.

如果尚未准备就绪,请完成 Office 部署的评估计划阶段。If you haven't already, complete the assessment and planning phases for your Office deployment.

本文面向的是在企业环境中处理数百或数千台计算机的管理员。This article is intended for administrators in enterprise environments working with hundreds or thousands of computers. 如果希望在一台或少量设备上安装 Office,建议查看在电脑或 Mac 上下载并安装或重新安装 Office 365 或 Office 2019,或使用 Office 脱机安装程序If you want to install Office on a single device or small number of devices, we recommend reviewing Download and install or reinstall Office 365 or Office 2019 on your PC or Mac or Use the Office offline installer.

最佳做法Best practices

本文中的步骤基于以下最佳做法:The steps in this article are based on the following best practices:

  • 自动管理对 Office 更新,无需任何管理开销。有关详细信息,请参阅 选择如何管理更新。(如果要从本地源管理更新,则需要更改配置文件。有关详细信息,请参阅配置更新)。Manage updates to Office automatically, without any adminstrative overhead. For more details, see Choose how to manage updates. (If you want to manage updates from a local source, you need to change the configuration files. For more details, see configuring updates).
  • 生成两个 Office 安装包:一个包使用 64 位“半年频道”,另一个包使用 64 位“半年频道(定向)”。Build two Office installation packages: One package uses Semi-Annual Channel for 64-bit and the other uses Semi-Annual Channel (Targeted) for 64-bit. 每个安装包都包含所有核心 Office 应用。Each installation package includes all the core Office apps. 如果想要改为部署 32 位版本的 Office,可以在创建安装包时选择该选项。If you want to deploy the 32-bit version of Office instead, you can select that option when creating the installation package. 若要部署两个版本,请创建其他安装包。To deploy both versions, you create additional installation packages. 有关详细信息,请参阅定义源文件For more details, see Define your source files.
  • 部署到两个部署组:接收“半年频道(定向)”的试点组和接收“半年频道”的广泛组。Deploy to two deployment groups: a pilot group that receives the Semi-Annual Channel (Targeted) and a broad group that receives the Semi-Annual Channel. 有关详细信息,请参阅选择更新通道For more details, see Choose your update channels.

可以自定义这些选项以匹配组织需求,包括部署到两个以上的组、更改更新通道、部署 Visio 和 Project。You can customize these options to match the requirements for your organization, including deploying to more than two groups, changing update channels, and deploying Visio and Project. 有关详细信息,请参阅自定义部署For more details, see Customize your deployment.

步骤 1:为 Office 安装文件创建共享文件夹Step 1: Create shared folders for Office installation files

由于是从本地源部署 Office 365 专业增强版,因此需要创建文件夹来存储 Office 安装文件。需要创建一个父文件夹和两个子文件夹,一个用于试点组(使用来自半年频道(定向)的 Office 版本),一个用于广泛组(使用来自半年频道的 Office 版本)。这种结构类似于Office 内容交付网络 (CDN) 所使用的结构。Because you're deploying Office 365 ProPlus from a local source, you have to create folders to store the Office installation files. You'll create one parent folder and two child folders, one for the pilot group, with the version of Office from Semi-Annual Channel (Targeted), and one for the broad group, with version of Office from Semi-Annual Channel. This structure is similar to the one that the Office Content Delivery Network (CDN) uses.

  1. 创建以下文件夹:Create the following folders:

    • \\Server\Share\O365:存储 ODT 和配置文件(定义如何下载并部署 Office)。\\Server\Share\O365: Stores the ODT and the configuration files that define how to download and deploy Office.
    • \\Server\Share\O365\SACT:存储来自半年频道(定向)的 Office 365 专业增强版安装文件。\\Server\Share\O365\SACT: Stores the Office 365 ProPlus installation files from Semi-Annual Channel (Targeted).
    • \\Server\Share\O365\SAC:存储来自半年频道的 Office 365 专业增强版安装文件。\\Server\Share\O365\SAC: Stores the Office 365 ProPlus installation files from Semi-Annual Channel.

这些文件夹将包含需要部署的所有 Office 安装文件。These folders will include all the Office installation files you need to deploy.

  1. 为用户分配读取权限。Assign Read permissions for your users. 从共享文件夹安装 Office 只需用户对该文件夹具有读取权限,因此,应向每个用户分配读取权限。Installing Office from a shared folder requires only that the user have Read permission for that folder, so you should assign Read permission to everyone. 有关如何创建共享文件夹和分配权限的详细信息,请参阅共享文件夹For details about how to create shared folders and assign permissions, see Shared Folders

备注

在本文中,我们在网络上只有一个共享文件夹,但许多组织从多个位置提供 Office 安装文件。使用多个位置可以帮助提高可用性,并尽量减小对网络带宽的影响。例如,如果一些用户位于分支机构,可以在分支机构中创建一个共享文件夹。然后,这些用户可以从本地网络安装 Office。可以在 Windows Server 中使用分布式文件系统 (DFS) 角色服务来创建一个可复制到多个位置的网络共享。有关详细信息,请参阅 DFS 管理In this article, we have just one shared folder on the network, but many organizations make the Office installation files available from multiple locations. Using multiple locations can help improve availability and minimize the effect on network bandwidth. For example, if some of your users are located in a branch office, you can create a shared folder in the branch office. Those users can then install Office from the local network. You can use the Distributed File System (DFS) role service in Windows Server to create a network share that is replicated to multiple locations. For more information, see DFS Management.

步骤 2:下载 Office 部署工具Step 2: Download the Office Deployment Tool

Microsoft 下载中心将 ODT 下载到 \\Server\Share\O365。如果已下载 ODT,请确保拥有最新版本。Download the ODT from the Microsoft Download Center to \\Server\Share\O365. If you've already downloaded the ODT, make sure you have the latest version.

下载文件后,运行自解压缩可执行文件,其中包含 ODT 可执行文件 (setup.exe) 和一个示例配置文件 (configuration.xml)。After downloading the file, run the self-extracting executable file, which contains the ODT executable (setup.exe) and a sample configuration file (configuration.xml).

步骤 3:为试点组创建配置文件Step 3: Create a configuration file for the pilot group

若要向试点组下载和部署 Office 365 专业增强版,请将配置文件与 ODT 结合使用。To download and deploy Office 365 ProPlus to the pilot group, you use a configuration file with the ODT. 若要创建配置文件,建议使用 Office 自定义工具To create the configuration file, we recommend using the Office Customization Tool.

  1. 转到“Office 自定义工具”并配置 Office 365 安装所需的设置。Go to Office Customization Tool and configure the desired settings for your Office 365 installation. 建议使用以下选项:We recommend the following options:
  • 产品: Office 365 专业增强版。Products: Office 365 ProPlus. 如果计划部署这些应用,还可以包含 Visio 和 Project。You can also include Visio and Project if you plan to deploy those apps.
  • 更新频道: 选择“半年频道(定向)”**** 作为试点组的安装包Update channel: Choose Semi-Annual Channel (Targeted) for the installation package for the pilot group
  • 语言: 包括计划部署的所有语言包。Language: Include all the language packs you plan to deploy. 建议选择“匹配操作系统”**** 以自动安装操作系统和客户端设备的任何用户使用的相同语言。We recommend selecting Match operating system to automatically install the same languages that are in use by the operating system and any user on the client device. 此外建议选择“回退到 CDN”****,将 Office CDN 用作语言包的备份源。We also recommend selecting Fallback to the CDN to use the Office CDN as a backup source for language packs.
  • 安装: 选择本地源,并键入源路径“\\Server\Share\O365\SACT”。Installation: Select Local source, and type "\\Server\Share\O365\SACT" for the source path. Office 将下载到我们网络上的 \\server\share\O365\SACT,然后从中进行安装Office will be downloaded to and then installed from \\server\share\O365\SACT on your network
  • 更新: 若要自动更新客户端设备,选择“CDN”**** 和“自动检查更新”****。Updates: To update your client devices automatically, choose CDN and Automatically check for updates.
  • 升级: 选择自动删除所有早期 MSI 版本的 Office。Upgrades: Choose to automatically remove all previous MSI versions of Office. 还可以选择安装与任何已删除的 MSI 版本的 Office 相同的语言,但请确保在安装包中包含这些语言。You can also choose to install the same language as any removed MSI versions of Office, but make sure to include those languages in your installation package.
  • 其他属性: 若要以无提示方式为用户安装 Office,请为“显示级别”**** 选择“关闭”**** 并为“自动接受 EULA”**** 选择“打开”****。Additional properties: To silently install Office for your users, choose Off for the Display level and On for the Automatically accept the EULA.
  • 应用程序首选项: 定义要启用的任何 Office 设置,包括 VBA 宏通知、默认文件位置和默认文件格式Application preferences: Define any Office settings you want to enable, including VBA macro notifications, default file locations, and default file formats
  1. 完成配置时,单击页面右上角的“导出”****,然后将文件另存为 \\Server\Share\O365 文件夹中的 config-pilot-SACT.xmlWhen you complete the configuration, click Export in the upper right of the page, and then save the file as config-pilot-SACT.xml in the \\Server\Share\O365 folder.

有关如何使用 Office 自定义工具的更多详细信息,请参阅 Office 自定义工具概述For more details on how to use the Office Customization Tool, see Overview of the Office Customization Tool. 有关配置选项的详细信息,请参阅 Office 部署工具的配置选项For more information about the configuration options, see Configuration options for the Office Deployment Tool.

请注意,Office 安装文件和 Office 更新将来自半年频道(定向)。有关基于各种更新频道的 Office 最新版本的详细信息,请参阅有关 Office 365 专业增强版更新的发布信息Note that the Office installation files and Office updates will come from Semi-Annual Channel (Targeted). For more details on the most recent version of Office based on the different update channels, see Release information for updates to Office 365 ProPlus.

步骤 4:为广泛组创建配置文件Step 4: Create a configuration file for the broad group

使用 Office 自定义工具,为广泛组创建配置文件。Using the Office Customization Tool, create the configuration file for the broad group.

  1. 转到“Office 自定义工具”并配置 Office 365 安装所需的设置。Go to Office Customization Tool and configure the desired settings for your Office 365 installation. 建议匹配与步骤 3 中的试点组相同的选项,以下更改除外:We recommend matching the same options as the pilot group in Step 3, except for the following changes:
  • 更新通道: 为试点组选择安装包“半年频道”****Update channel: Choose Semi-Annual Channel for the installation package for the pilot group
  • 安装: 选择本地源,并键入源路径“\\Server\Share\O365\SAC”。Installation: Select Local source, and type "\\Server\Share\O365\SAC" for the source path. Office 将下载到我们网络上的 \\server\share\O365\SAC,然后从中进行安装Office will be downloaded to and then installed from \\server\share\O365\SAC on your network
  1. 完成配置时,单击页面右上角的“导出”****,然后将文件另存为 \\Server\Share\O365 文件夹中的 config-pilot-SAC.xmlWhen you complete the configuration, click Export in the upper right of the page, and then save the file as config-pilot-SAC.xml in the \\Server\Share\O365 folder.

此配置文件用于下载 Office 安装文件,然后将其部署到广泛组。This configuration file is used to download Office installation files and then deploy them to the broad group. 这些设置与第一个配置文件完全相同,只是源路径指向不同文件夹 (SAC),且更新通道设置为“半年频道(“广泛”)”。The settings are exactly the same as the first configuration file, except the source path points to a different folder (SAC), and the update channel is set to Semi-Annual Channel ("Broad").

步骤 5:为试点组下载 Office 安装包Step 5: Download the Office installation package for the pilot group

在命令提示符处,在下载模式下运行 ODT 可执行文件(会引用试点组的配置文件):From a command prompt, run the ODT executable in download mode and with a reference to the configuration file for the pilot group:

\\server\share\O365\setup.exe /download \\server\share\O365\config-pilot-SACT.xml

这些文件应立即开始下载。运行命令后,转到 \\server\share\O365\SACT,并查看具有合适文件的 Office 文件夹。The files should begin downloading immediately. After running the command, go to \\server\share\O365\SACT and look for an Office folder with the appropriate files in it.

请注意,在将 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.

如果遇到问题,请确保拥有最新版本的 ODT,并确保配置文件和命令引用正确的位置。也可以通过查看 %temp% and %windir%\temp directories 中的日志文件对问题进行故障排除。If you run into problems, make sure you have the newest version of the ODT and make sure your configuration file and command reference the correct location. You can also troubleshoot issues by reviewing the log file in the %temp% and %windir%\temp directories.

步骤 6:为广泛组下载 Office 安装包Step 6: Download the Office installation package for the broad group

在命令提示符处,在下载模式下运行 ODT 可执行文件(会引用广泛组的配置文件):From a command prompt, run the ODT executable in download mode and with a reference to the configuration file for the broad group:

\\server\share\O365\setup.exe /download \\server\share\O365\config-broad-SAC.xml

这些文件应立即开始下载。运行命令后,转到 \\server\share\O365\SAC,并查看具有合适文件的 Office 文件夹。The files should begin downloading immediately. After running the command, go to \\server\share\O365\SAC and look for an Office folder with the appropriate files in it.

步骤 7:将 Office 部署到试点组Step 7: Deploy Office to the pilot group

要部署 Office,我们要提供让用户可以从其客户端计算机上运行的命令。这些命令在配置模式下运行 ODT,并引用相应的配置文件,该文件定义要在客户端计算机上安装的 Office 版本。运行这些命令的用户必须在其计算机上具有本地管理员权限,并且必须具有对共享文件夹 (\\server\share\O365) 的读取权限。To deploy Office, we'll provide commands that users can run from their client computers. The commands run the ODT in configure mode and with a reference to the appropriate configuration file, which defines which version of Office to install on the client computer. Users who run these commands must have local admin privileges on their computer and must have read permissions to the share (\\server\share\O365).

从试点组的客户端计算机中,使用管理员权限在命令提示符处运行以下命令:From the client computers for the pilot group, run the following command from a command prompt with admin privileges:

\\Server\Share\O365\setup.exe /configure \\Server\Share\O365\config-pilot-SACT.xml

备注

大多数组织将使用此命令作为批处理文件、脚本或用于自动化部署的其他过程的一部分。在这些情况下,可以在提升权限下运行脚本,这样用户就不需要在他们的计算机上拥有管理员权限。Most organizations will use this command as part of a batch file, script, or other process that automates the deployment. In those cases, you can run the script under elevated permissions, so the users will not need to have admin privileges on their computers.

运行命令后,Office 安装应立即开始。如果遇到问题,请确保拥有最新版本的 ODT,并确保配置文件和命令引用正确的位置。也可以通过查看 %temp% 和 %windir%\temp 目录中的日志文件来对该问题进行故障排除。After running the command, the Office installation should start immediately. If you run into problems, make sure you have the newest version of the ODT and make sure your configuration file and command reference the correct location. You can also troubleshoot issues by reviewing the log file in the %temp% and %windir%\temp directories.

在将 Office 部署到试点组后,可在环境中测试 Office,尤其是测试硬件和设备驱动程序。有关详细信息,请参阅选择更新频道After Office has deployed to the pilot group, test Office in your environment, particularly with your hardware and device drivers. For more details, see Choose your update channels.

步骤 8:将 Office 部署到广泛组Step 8: Deploy Office to the broad group

在为试点组测试 Office 之后,可以将其部署到广泛组。为此,请使用管理员权限从命令提示符处运行以下命令:After you've finished testing Office with the pilot group, you can deploy it to the broad group. To do so, run the following command from a command prompt with admin privileges:

\\Server\Share\O365\setup.exe /configure \\Server\Share\O365\config-broad-SAC.xml

此命令与试点组相同,只是它引用的是广泛组的配置文件。This command is the same as the pilot group, except that it references the configuration file for the broad group.

运行该命令后,系统应立即开始安装 Office。After running the command, the Office installation should start immediately.

自定义部署Customize your deployment

本文中的步骤涵盖了 Microsoft 提供的标准最佳做法建议。The steps in this article cover the standard best practice recommendations from Microsoft. 本部分介绍了这些最佳做法最常见的自定义设置。This section covers the most common customizations to these best practices.

生成多个包并将其部署到多个部署组Build and deploy multiple packages to multiple deployment groups

如果要同时部署 32 位和 64 位版本的 Office,可以创建其他安装包。If you want to deploy both the 32-bit and the 64-bit version of Office, you can create additional installation packages. (两个不同的体系结构不能包含在同一包中。)有关详细信息,请参阅定义源文件(Two different architectures cannot be included in the same package.) For more details, see Define your source files.

使用适用于 Office 的不同更新频道Use different update channels for Office

使用 Office 365 专业增强版,可以控制用户接收 Office 应用程序功能更新的频率。With Office 365 ProPlus, you can control how frequently your users receive feature updates to their Office applications. 为此,请为用户选择更新频道。To do so, you choose an update channel for your users. 本文建议为试点组选择“半年频道(定向)”,并为组织的其他组选择“半年频道”。In this article, we recommend the Semi-Annual Channel (Targeted) for your pilot group and the Semi-Annual Channel for the rest of your organization. 不过,你可以选择“每月频道”,最新 Office 功能一经推出,该频道便会立即提供给用户。You can, however, choose the Monthly Channel, which provides users with the newest features of Office as soon as they're available. 单个 Office 安装包只能包含一种类型的频道,因此每个新频道需要一个额外的包。A single Office installation package can only include one type of channel, so each new channel requires an additional package. 有关更多详细信息,请参阅 Office 365 专业增强版的更新频道概述For more details, see Overview of update channels for Office 365 ProPlus.

在部署核心 Office 应用的同时部署 Visio 和 ProjectDeploy Visio and Project alongside the core Office apps

若要在 Office 365 专业增强版中部署 Visio 和 Project,可以在 Configuration Manager 中生成 Office 应用程序时,将其包含为该应用程序的一部分。To deploy Visio and Project with Office 365 ProPlus, you can inlude them as part of the Office application when building it in Configuration Manager. 有关许可和系统要求的详细信息,请参阅 Visio 部署指南Project 部署指南For more details on licensing and system requirements, see Deployment guide for Visio and Deployment guide for Project.

Office 部署工具的配置选项Configuration options for the Office Deployment Tool

Office 部署工具概述Overview of the Office Deployment Tool

Office 自定义工具概述Overview of the Office Customization Tool

Office 365 专业增强版部署指南Deployment guide for Office 365 ProPlus