从云中部署 Microsoft 365 应用版

请按照本文中的步骤操作,使用 Office 部署工具 (ODT) 从 Office 内容分发网络 (CDN) 向客户端计算机部署 Microsoft 365 应用版。

准备工作

Make sure your users have local admin privileges on their client devices. If that is not the case, then you should use your standard deployment tools and processes to install Office.

如果尚未准备就绪,请完成 Office 部署的评估计划阶段。

This article is intended for administrators in enterprise environments working with hundreds or thousands of computers. If you want to install Office on a single device or small number of devices, we recommend reviewing Download and install or reinstall Microsoft 365 or Office 2021 on a PC or Mac or Use the Office offline installer.

最佳做法

本文中的步骤基于以下最佳做法(如果你选择部署半年企业频道):

  • Manage updates to Office automatically, without any administrative overhead. For more details, see Choose how to manage updates.
  • Build two Office installation packages: Semi-Annual Enterprise Channel for 64-bit and Semi-Annual Enterprise Channel (Preview) for 64-bit. Each installation package includes all the core Office apps. (If you want to deploy the 32-bit version of Office as well, you can create additional installation packages.) For more details, see Define your source files.
  • Deploy to two deployment groups: a pilot group that receives Semi-Annual Enterprise Channel (Preview) and a broad group that receives Semi-Annual Enterprise Channel. Note that in this scenario, the installation packages and deployment groups match exactly. In more complex deployments, you might have multiple deployment groups that use the same installation package. For more details, see Choose your update channels.

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 部署工具

You use the Office Deployment Tool (ODT) to deploy Office from the Office CDN. The deployment tool is run from the command line and uses a configuration file to determine what settings to apply when deploying Office.

  1. Create the shared folder \\Server\Share\M365 and assign read permissions for your users. For details about how to create shared folders and assign permissions, see Shared Folders.

  2. Download the Office Deployment Tool from the Microsoft Download Center to \\Server\Share\M365. If you've already downloaded the ODT, make sure you have the latest version.

  3. 下载文件后,运行自解压缩可执行文件,其中包含 Office 部署工具可执行文件 (setup.exe) 和一个示例配置文件 (configuration.xml)。

步骤 2:为试点组创建配置文件

To download and deploy Microsoft 365 Apps to the pilot group, you use a configuration file with the ODT. To create the configuration file, we recommend using the Office Customization Tool.

  1. Go to Office Customization Tool and configure the desired settings for your Microsoft 365 Apps installation. We recommend the following options:
  • Products: Microsoft 365 Apps. You can also include Visio and Project if you plan to deploy those apps.
  • 更新频道: 选择“半年企业频道(预览)”作为试点组的安装包
  • 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. We also recommend selecting Fallback to the CDN to use the Office CDN as a backup source for language packs.
  • 安装: 选择“Office 内容传递网络 (CDN)”。
  • 更新: 若要自动更新客户端设备,选择“CDN”和“自动检查更新”。
  • Upgrades: Choose to automatically remove all previous MSI versions of 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”选择“打开”。
  • 应用程序首选项: 定义要启用的任何 Office 设置,包括 VBA 宏通知、默认文件位置和默认文件格式
  1. 完成配置后,单击页面右上角的“导出”,然后将文件另存为 \\Server\Share\M365 文件夹中的 config-pilot-SECP.xml

For more details on how to use the Office Customization Tool, see Overview of the Office Customization Tool. For more information about the configuration options, see Configuration options for the Office Deployment Tool.

Note that the Office installation files and Office updates will come from Semi-Annual Enterprise Channel (Preview). For more details on the most recent version of Office based on the different update channels, see Release information for updates to Microsoft 365 Apps.

步骤 3:为广泛组创建配置文件

使用 Office 自定义工具,为广泛组创建配置文件。

  1. Go to Office Customization Tool and configure the desired settings for your Microsoft 365 Apps installation. We recommend matching the same options as the pilot group in Step 2, except for the following change:
  • 更新频道: 为广泛组的安装包选择“半年企业频道
  1. 完成配置后,单击页面右上角的“导出”,然后将文件另存为 \\Server\Share\M365 文件夹中的 config-broad-SEC.xml

This configuration file is used to download Office installation files and then deploy them to the broad group. The settings are exactly the same as the first configuration file, except the update channel is set to Semi-Annual Enterprise Channel.

步骤 4:将 Office 部署到试点组

To deploy Office, you 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 and must have read permissions to the share (\\server\share\M365).

从试点组的客户端计算机中,使用管理员权限在命令提示符处运行以下命令:

\\Server\Share\M365\setup.exe /configure \\Server\Share\M365\config-pilot-SECP.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.

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% folder.

After Office has deployed to the pilot group, you can test Office in your environment, particularly with your hardware and device drivers. For more details, see Choose your update channels.

步骤 5:将 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\M365\setup.exe /configure \\Server\Share\M365\config-broad-SEC.xml

This command is the same as the pilot group, except that it references the configuration file for the broad group. After running the command, the Office installation should start immediately.

自定义部署

The steps in this article cover the standard best practice recommendations from Microsoft, if you've chosen to deploy Semi-Annual Enterprise Channel. This section covers the most common customizations to these best practices.

生成多个包并将其部署到多个部署组

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 的不同更新频道

With Microsoft 365 Apps, 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. For more information, see Overview of update channels for Microsoft 365 Apps.

In this article, we're using Semi-Annual Enterprise Channel (Preview) for your pilot group and Semi-Annual Enterprise Channel for the rest of your organization. You can, however, choose to deploy Current Channel, which provides users with the newest features of Office as soon as they're ready. In that scenario, you'd deploy Current Channel (Preview) to your pilot group.

单个 Office 安装包只能包含一种类型的更新频道,因此每新增一个更新频道都额外需要一个安装包。

在部署核心 Office 应用的同时部署 Visio 和 Project

To deploy Visio and Project with Microsoft 365 Apps, you can include them as part of the Office application when building it in Configuration Manager. For more details on licensing and system requirements, see Deployment guide for Visio and Deployment guide for Project.

Office 部署工具的配置选项

Office 部署工具概述

Office 自定义工具概述

Microsoft 365 应用部署指南