使用 Microsoft Intune 将 Microsoft 365 应用添加到 Windows 10 设备Add Microsoft 365 apps to Windows 10 devices with Microsoft Intune

必须首先将应用添加到 Intune 中,才可以分配、监视、配置或保护它们。Before you can assign, monitor, configure, or protect apps, you must add them to Intune. 其中一个可用的应用类型是适用于 Windows 10 设备的 Microsoft 365 应用。One of the available app types is Microsoft 365 apps for Windows 10 devices. 通过在 Intune 中选择此应用类型,可以将 Microsoft 365 应用分配并安装到所管理的运行 Windows 10 的设备。By selecting this app type in Intune, you can assign and install Microsoft 365 apps to devices you manage that run Windows 10. 还可以分配和安装适用于 Microsoft Project Online 桌面客户端和 Microsoft Visio Online 计划 2 的应用,前提是拥有它们的许可证。You can also assign and install apps for the Microsoft Project Online desktop client and Microsoft Visio Online Plan 2, if you own licenses for them. 可用的 Microsoft 365 应用将显示为 Azure 内 Intune 控制台的应用列表中的一个条目。The available Microsoft 365 apps are displayed as a single entry in the list of apps in the Intune console within Azure.

备注

Microsoft Office 365 专业增强版已重命名为 Microsoft 365 企业应用版 。Microsoft Office 365 ProPlus has been renamed to Microsoft 365 Apps for enterprise. 在我们的文档中,我们通常将它称为 Microsoft 365 应用版。In our documentation, we'll commonly refer to it as Microsoft 365 Apps.

必须使用 Microsoft 365 应用版许可证来激活通过 Microsoft Intune 部署的 Microsoft 365 应用版应用。You must use Microsoft 365 Apps licenses to activate Microsoft 365 Apps apps deployed through Microsoft Intune. Intune 支持 Microsoft 365 商业应用版,但用户必须使用 XML 数据配置 Microsoft 365 商业应用版的应用套件。Microsoft 365 Apps for business edition is supported by Intune, however you must configure the app suite of the Microsoft 365 Apps for business edition using XML data. 有关详细信息,请参阅使用 XML 数据配置应用套件For more information, see Configure app suite using XML data.

开始之前Before you start

重要

如果最终用户设备上有 .msi Office 应用,则必须使用“删除 MSI” 功能来安全地卸载这些应用。If there are .msi Office apps on the end-user device, you must use the Remove MSI feature to safely uninstall these apps. 否则,将无法安装 Intune 提供的 Microsoft 365 应用。Otherwise, the Intune delivered Microsoft 365 apps will fail to install.

  • 部署这些应用的设备必须运行 Windows 10 创意者更新或更高版本。Devices to which you deploy these apps must be running the Windows 10 Creators Update or later.
  • Intune 仅支持添加来自 Microsoft 365 应用版套件的 Office 应用。Intune supports adding Office apps from the Microsoft 365 Apps suite only.
  • 当 Intune 安装应用套件时,如果任何 Office 应用处于打开状态,安装可能会失败,并且用户可能会丢失未保存文件中的数据。If any Office apps are open when Intune installs the app suite, the installation might fail, and users might lose data from unsaved files.
  • Windows 家庭版、Windows 团队版、Windows 全息版或 Windows Holographic for Business 设备不支持这种安装方法。This installation method is not supported on Windows Home, Windows Team, Windows Holographic, or Windows Holographic for Business devices.
  • 在已使用 Intune 部署 Microsoft 365 应用的设备上,Intune 不支持安装 Microsoft Store 中的 Microsoft 365 桌面应用(称为 Office Centennial 应用)。Intune does not support installing Microsoft 365 desktop apps from the Microsoft Store (known as Office Centennial apps) on a device to which you have already deployed Microsoft 365 apps with Intune. 如果安装此配置,可能会导致数据丢失或损坏。If you install this configuration, it might cause data loss or corruption.
  • 多个必需或可用的应用分配不会累加。Multiple required or available app assignments are not additive. 后面的应用分配会覆盖之前存在的已安装应用分配。A later app assignment will overwrite pre-existing installed app assignments. 例如,如果第一组 Office 应用包含 Word,而后面的应用不包含,则 Word 会被卸载。For example, if the first set of Office apps contains Word, and the later one does not, Word will be uninstalled. 该条件不适用于任何 Visio 或 Project 应用程序。This condition does not apply to any Visio or Project applications.
  • 当前不支持多个 Microsoft 365 部署。Multiple Microsoft 365 deployments are not currently supported. 只会向设备提供一个部署。Only one deployment will be delivered to the device.
  • Office 版本 - 选择要分配 32 位还是 64 位版本的 Office。Office version - Choose whether you want to assign the 32-bit or 64-bit version of Office. 可以在 32 位和 64 位设备上安装 32 位版本,但只能在 64 位设备上安装 64 位版本。You can install the 32-bit version on both 32-bit and 64-bit devices, but you can install the 64-bit version on 64-bit devices only.
  • 从最终用户设备中删除 MSI - 选择是否要从最终用户设备中删除预先存在的 Office .MSI 应用。Remove MSI from end-user devices - Choose whether you want to remove pre-existing Office .MSI apps from end-user devices. 如果最终用户设备上存在预先存在的 .MSI 应用,安装不会成功。The installation won't succeed if there are pre-existing .MSI apps on end-user devices. 要卸载的应用不仅限于在“配置应用套件”中选择安装的应用,因为它会从最终用户设备中删除所有 Office (MSI) 应用 。The apps to be uninstalled are not limited to the apps selected for installation in Configure App Suite, as it will remove all Office (MSI) apps from the end user device. 有关详细信息,请参阅升级到 Microsoft 365 应用版后删除现有的 Office MSI 版本For more information, see Remove existing MSI versions of Office when upgrading toMicrosoft 365 Apps. Intune 在最终用户计算机上重新安装 Office 时,最终用户将自动获得与以前安装的 .MSI Office 相同的语言包。When Intune reinstalls Office on your end user's machines, end users will automatically get the same language packs that they had with previous .MSI Office installations.

选择 Microsoft 365 应用版Select Microsoft 365 Apps

  1. 登录到 Microsoft 终结点管理器管理中心Sign in to the Microsoft Endpoint Manager admin center.
  2. 选择“应用” > “所有应用” > “添加” 。Select Apps > All apps > Add.
  3. 在“选择应用类型” 窗格的“Microsoft 365 应用版” 部分中选择“Windows 10” 。Select Windows 10 in the Microsoft 365 Apps section of the Select app type pane.
  4. 单击“选择” 。Click Select. 随即显示“添加 Microsoft 365 应用版” 步骤。The Add Microsoft 365 Apps steps are displayed.

步骤 1 - 应用套件信息Step 1 - App suite information

在此步骤中,提供有关该应用套件的信息。In this step, you provide information about the app suite. 此信息有助于在 Intune 中识别应用套件,也有助于用户在公司门户中找到应用套件。This information helps you to identify the app suite in Intune, and it helps users to find the app suite in the company portal.

  1. 在“应用套件信息” 页中,可以确认或修改默认值:In the App suite information page, you can confirm or modify the default values:
    • 套件名称:输入应用套件的名称,该名称将显示在公司门户中。Suite Name: Enter the name of the app suite as it is displayed in the company portal. 请确保使用的所有套件名称都是唯一的。Make sure that all suite names that you use are unique. 如果同一应用套件名称存在两次,则在公司门户中将仅向用户显示其中一个应用。If the same app suite name exists twice, only one of the apps is displayed to users in the company portal.
    • 套件描述:输入应用套件的描述。Suite Description: Enter a description for the app suite. 例如,可以列出已选择要包括的应用。For example, you could list the apps you've selected to include.
    • 发布者:Microsoft 显示为发布者。Publisher: Microsoft appears as the publisher.
    • 类别:(可选)选择一个或多个内置应用类别或所创建的类别。Category: Optionally, select one or more of the built-in app categories or a category that you created. 该设置可让用户在浏览公司门户时更轻松地查找应用套件。This setting makes it easier for users to find the app suite when they browse the company portal.
    • 在公司门户中将此应用显示为特色应用:当用户浏览应用时,选择此选项以在公司门户的主页上突出显示应用套件。Show this as a featured app in the Company Portal: Select this option to display the app suite prominently on the main page of the company portal when users browse for apps.
    • 信息 URL:(可选)输入包含此应用相关信息的网站的 URL。Information URL: Optionally, enter the URL of a website that contains information about this app. 在公司门户中向用户显示该 URL。The URL is displayed to users in the company portal.
    • 隐私 URL:(可选)输入包含此应用相关隐私信息的网站的 URL。Privacy URL: Optionally, enter the URL of a website that contains privacy information for this app. 在公司门户中向用户显示该 URL。The URL is displayed to users in the company portal.
    • 开发者:Microsoft 显示为开发者。Developer: Microsoft appears as the developer.
    • 所有者:Microsoft 显示为所有者。Owner: Microsoft appears as the owner.
    • 备注:输入想与此应用关联的任何备注。Notes: Enter any notes that you want to associate with this app.
    • 徽标:用户浏览公司门户时,Microsoft 365 应用版徽标与应用一同显示。Logo: The Microsoft 365 Apps logo is displayed with the app when users browse the company portal.
  2. 单击“下一步” 以显示“配置应用套件” 页。Click Next to display the Configure app suite page.

步骤 2 -(选项 1 )使用配置设计器配置应用套件Step 2 - (Option 1) Configure app suite using the configuration designer

可以选择一种方法来配置应用设置,方法是选择“配置设置格式” 。You can choose a method for configuring app setting by selecting a Configuration settings format. 设置格式选项包括:Setting format options include:

  • 配置设计器Configuration designer
  • 输入 XML 数据Enter XML data

选择“配置设计器” 后,“添加应用” 窗格会发生变化,会新增三个设置区域:When you choose Configuration designer the Add app pane will change to offer three additional settings areas:

  • 配置应用套件Configure app suite
  • 应用套件信息App suite information
  • 属性Properties
Add Microsoft 365 Apps - Configuration designer
  1. 在“配置应用套件” 页上,选择“配置设计器” 。On the Configuration app suite page choose Configuration designer.
    • 选择 Office 应用:通过在下拉列表中选择应用,选择要分配到设备的标准 Office 应用。Select Office apps: Select the standard Office apps that you want to assign to devices by choosing the apps in the dropdown list.

    • 选择其他 Office 应用(需要许可证) :通过在下拉列表中选择应用,选择要分配到设备以及有相应许可证的其他 Office 应用。Select other Office apps (license required): Select additional Office apps that you want to assign to devices and that you have licenses for by choosing the apps in the dropdown list. 这些应用包括许可的应用,如 Microsoft Project Online 桌面客户端和 Microsoft Visio Online 计划 2。These apps include licensed apps, such as Microsoft Project Online desktop client and Microsoft Visio Online Plan 2.

    • 体系结构:选择要分配 32 位还是 64 位版本的 Microsoft 365 应用版。Architecture: Choose whether you want to assign the 32-bit or 64-bit version of Microsoft 365 Apps. 可以在 32 位和 64 位设备上安装 32 位版本,但只能在 64 位设备上安装 64 位版本。You can install the 32-bit version on both 32-bit and 64-bit devices, but you can install the 64-bit version on 64-bit devices only.

    • 更新通道:选择在设备上更新 Office 的方式。Update Channel: Choose how Office is updated on devices. 有关不同更新频道的信息,请参阅 Microsoft 365 企业应用版的更新频道概述For information about the various update channels, see Overview of update channels for Microsoft 365 Apps for enterprise. 选择:Choose from:

      • 每月Monthly
      • 每月(定向)Monthly (Targeted)
      • 半年Semi-Annual
      • 半年(定向)Semi-Annual (Targeted)

      选择通道后,可以选择以下项:After you choose a channel, you can choose the following:

      • 删除其他版本:选择“是” 从用户设备中删除其他版本的 Office (MSI)。Remove other versions: Choose Yes to remove other versions of Office (MSI) from user devices. 如果要从最终用户设备中删除预先存在的 Office .MSI 应用,请选择此选项。Choose this option when you want to remove pre-existing Office .MSI apps from end-user devices. 如果最终用户设备上存在预先存在的 .MSI 应用,安装不会成功。The installation won't succeed if there are pre-existing .MSI apps on end-user devices. 要卸载的应用不仅限于在“配置应用套件”中选择安装的应用,因为它会从最终用户设备中删除所有 Office (MSI) 应用 。The apps to be uninstalled are not limited to the apps selected for installation in Configure App Suite, as it will remove all Office (MSI) apps from the end user device. 有关详细信息,请参阅升级到 Microsoft 365 应用版后删除现有的 Office MSI 版本For more information, see Remove existing MSI versions of Office when upgrading to Microsoft 365 Apps. Intune 在最终用户计算机上重新安装 Office 时,最终用户将自动获得与以前安装的 .MSI Office 相同的语言包。When Intune reinstalls Office on your end user's machines, end users will automatically get the same language packs that they had with previous .MSI Office installations.

      • 要安装的版本:选择应安装的 Office 版本。Version to install: Choose the version of Office that should be installed.

      • 特定版本:如果在上述设置中选择“特定版本” 作为要安装的版本 ,则可以选择为最终用户设备上的选定通道安装特定版本的 Office。Specific version: If you have chosen Specific as the Version to install in the above setting, you can select to install a specific version of Office for the selected channel on end user devices.

        可用版本会随时间发生变化。The available versions will change over time. 因此,在创建新部署时,可用版本可能为更新的版本,而不再提供某些较旧版本。Therefore, when creating a new deployment, the versions available may be newer and not have certain older versions available. 当前部署会继续部署旧版本,但版本列表会持续按通道更新。Current deployments will continue to deploy the older version, but the version list will be continually updated per channel.

        对于更新其固定版本和部署为可用的设备,如果设备在发生设备签入前已安装以前版本,报告状态将显示为“已安装”。For devices that update their pinned version (or update any other properties) and are deployed as available, the reporting status will show as Installed if they installed the previous version until the device check-in occurs. 发生设备签入时,状态将暂时更改为“未知”,但不会向用户显示该状态。When the device check-in happens, the status will temporarily change to Unknown, however it will not be shown to the user. 当用户开始安装最新可用版本时,用户将看到状态更改为“已安装”。When the user initiates the install for the newer available version, the user will see the status changed to Installed.

        有关详细信息,请参阅 Microsoft 365 应用版的更新通道概述For more information, see Overview of update channels for Microsoft 365 Apps.

    • 使用共享的计算机激活:当多个用户共享一台计算机时选择该选项。Use shared computer activation: Select this option when multiple users share a computer. 有关详细信息,请参阅 Microsoft 365 应用版的共享计算机激活概述For more information, see Overview of shared computer activation for Microsoft 365 Apps.

    • 自动接受应用最终用户许可协议:如果不需要最终用户接受许可协议,请选择此选项。Automatically accept the app end user license agreement: Select this option if you don't require end users to accept the license agreement. Intune 随后会自动接受该协议。Intune then automatically accepts the agreement.

    • 语言:Office 会自动以随 Windows 安装在最终用户设备上的任何受支持的语言进行安装。Languages: Office is automatically installed in any of the supported languages that are installed with Windows on the end-user's device. 如果想要使用应用套件安装其他语言,请选择此选项。Select this option if you want to install additional languages with the app suite.

      可以为通过 Intune 管理的 Microsoft 365 应用版部署其他语言。You can deploy additional languages for Microsoft 365 Apps managed through Intune. 可用语言列表包括语言包的“类型”(核心、部分和校对) 。The list of available languages includes the Type of language pack (core, partial, and proofing). 在 Azure 门户中,选择“Microsoft Intune” > “应用” > “所有应用” > “添加” 。In the Azure portal, select Microsoft Intune > Apps > All apps > Add. 在“添加应用”窗格的“应用类型”列表中,选择“Microsoft 365 应用版”下的“Windows 10” 。In the App type list of the Add app pane, select Windows 10 under Microsoft 365 Apps. 在“应用套件设置”窗格中选择“语言” 。Select Languages in the App Suite Settings pane. 有关其他信息,请参阅 Microsoft 365 应用版中的语言部署概述For additional information, see Overview of deploying languages in Microsoft 365 Apps.

  2. 单击“下一步” 以显示“作用域标记” 页面。Click Next to display the Scope tags page.

步骤 2 -(选项 2 )使用 XML 数据配置应用套件Step 2 - (Option 2) Configure app suite using XML data

如果在“配置应用套件” 页上的“设置格式” 下拉框下选择了“输入 XML 数据” 选项,则可以使用自定义配置文件来配置 Office 应用套件。If you selected the Enter XML data option under the Setting format dropdown box on the Configure app suite page, you can configure the Office app suite using a custom configuration file.

添加 Office 365 配置设计器

  1. 添加了配置 XML。Added your configuration XML.

    备注

    产品 ID 可以是商业版(O365BusinessRetail)或专业增强版(O365ProPlusRetail)。The Product ID can either be Business (O365BusinessRetail) or Proplus (O365ProPlusRetail). 但是,只能使用 XML 数据来配置 Microsoft 365 商业应用版的应用套件。However, you can only configure the app suite of the Microsoft 365 Apps for business edition using XML data. 请注意,Microsoft Office 365 专业增强版已重命名为 Microsoft 365 企业应用版 。Note that Microsoft Office 365 ProPlus has been renamed to Microsoft 365 Apps for enterprise.

  2. 单击“下一步” 以显示“作用域标记” 页面。Click Next to display the Scope tags page.

有关输入 XML 数据的详细信息,请参阅 Office 部署工具的配置选项For more information about entering XML data, see Configuration options for the Office Deployment Tool.

步骤 3 - 选择作用域标记(可选)Step 3 - Select scope tags (optional)

可以使用作用域标记来确定谁可以在 Intune 中查看客户端应用信息。You can use scope tags to determine who can see client app information in Intune. 若要详细了解作用域标记,请参阅将基于角色的访问控制和作用域标记用于分布式 ITFor full details about scope tags, see Use role-based access control and scope tags for distributed IT.

  1. 单击“选择作用域标记” 可以选择为应用套件添加作用域标记。Click Select scope tags to optionally add scope tags for the app suite.
  2. 单击“下一步”以显示“分配”页面 。Click Next to display the Assignments page.

步骤 4 - 分配Step 4 - Assignments

  1. 为应用套件选择“必需” 、“适用于已注册的设备” 或“卸载” 组分配。Select the Required, Available for enrolled devices, or Uninstall group assignments for the app suite. 有关详细信息,请参阅添加用于组织用户和设备的组使用 Microsoft Intune 将应用分配到组For more information, see Add groups to organize users and devices and Assign apps to groups with Microsoft Intune.
  2. 单击“下一步” 以显示“查看 + 创建”页 。Click Next to display the Review + create page.

步骤 5 - 查看 + 创建Step 5 - Review + create

  1. 查看为应用套件输入的值和设置。Review the values and settings you entered for the app suite.

  2. 完成后,单击“创建” 将应用添加到 Intune。When you are done, click Create to add the app to Intune.

    随即显示“概述” 边栏选项卡。The Overview blade is displayed.

部署详细信息Deployment details

通过 Office 配置服务提供程序 (CSP) 将 Intune 中的部署策略分配给目标计算机后,最终设备将从 officecdn.microsoft.com 位置自动下载安装包 。Once the deployment policy from Intune is assigned to the target machines through Office configuration service provider (CSP), the end device will automatically download the installation package from the officecdn.microsoft.com location. 你将看到两个目录显示在“Program Files”目录中 :You will see two directories appearing in the Program Files directory:

Program Files 目录中的 Office 安装包

在“Microsoft Office” 目录下,将创建存储安装文件的新文件夹:Under the Microsoft Office directory, a new folder is created where the installation files are stored:

Microsoft Office 目录下新建的文件夹

在“Microsoft Office 15” 目录下,将存储 Office 即点即用安装启动器文件。Under the Microsoft Office 15 directory, the Office Click-to-Run installation launcher files are stored. 如果需要分配类型,则将自动启动安装:The installation will start automatically if the assignment type is required:

单击以运行安装启动器文件

如果将 Microsoft 365 的分配配置为“必需”,则安装将处于静默模式。The installation will be in silent mode if the assignment of Microsoft 365 is configured as required. 安装成功后,将删除已下载的安装文件。The downloaded installation files will be deleted once the installation succeeded. 如果将分配配置为“可用” ,则 Office 应用程序将显示在公司门户应用程序中,以便最终用户能够手动触发安装。If the assignment is configured as Available, the Office applications will appear in the Company Portal application so that end-users can trigger the installation manually.

疑难解答Troubleshooting

Intune 使用 Office 部署工具下载 Office 365 专业增强版并使用 Office 365 CDN 将其部署到客户端计算机。Intune uses the Office Deployment Tool to download and deploy Office 365 ProPlus to your client computers using the Office 365 CDN. 参考管理 Office 365 终结点中所述的最佳做法,确保网络配置允许客户端直接访问 CDN(而不是通过中心代理路由 CDN 流量)以避免引入不必要的延迟。Reference the best practices outlined in Managing Office 365 endpoints to ensure that your network configuration permits clients to access the CDN directly rather than routing CDN traffic through central proxies to avoid introducing unnecessary latency.

如果遇到安装或运行时问题,请在目标设备上运行用于 Microsoft 365 的 Microsoft 支持和恢复助手Run the Microsoft Support and Recovery Assistant for Microsoft 365 on a targeted device if you encounter installation or run-time issues.

其他疑难解答详细信息Additional troubleshooting details

无法将 Microsoft 365 应用安装到设备上时,必须确定问题是与 Intune 相关还是与 OS/Office 相关。When you are unable to install the Microsoft 365 apps to a device, you must identify whether the issue is Intune-related or OS/Office-related. 如果你可以看到两个文件夹“Microsoft Office”和“Microsoft Office 15”显示在设备的“Program Files”目录中,则可以确认 Intune 已成功启动部署 。If you can see the two folders Microsoft Office and Microsoft Office 15 appearing in the Program Files directory of the device, you can confirm that Intune has initiated the deployment successfully. 如果看不到两个文件夹显示在“Program Files”下,则应确认以下情况 :If you cannot see the two folders appearing under Program Files, you should confirm the below cases:

  • 设备已在 Microsoft Intune 中正确注册。The device is properly enrolled into Microsoft Intune.

  • 设备上有活动的网络连接。There is an active network connection on the device. 如果设备处于飞行模式、处于关闭状态,或位于无服务的位置,则在建立网络连接之前不会应用此策略。If the device is in airplane mode, is turned off, or is in a location with no service, the policy will not apply until network connectivity is established.

  • 同时满足 Intune 和 Microsoft 365 网络要求,并且可以根据以下文章访问相关的 IP 范围:Both Intune and Microsoft 365 network requirements are met and the related IP ranges are accessible based on the following articles:

  • 已为 Microsoft 365 应用套件分配了正确的组。The correct groups have been assigned the Microsoft 365 app suite.

此外,还会监视目录 C:\Program Files\Microsoft Office\Updates\Download 的大小 。In addition, monitor the size of the directory C:\Program Files\Microsoft Office\Updates\Download. 从 Intune 云下载的安装包将存储在此位置。The installation package downloaded from the Intune cloud will be stored in this location. 如果大小不增加或仅缓慢增加,则建议仔细检查网络连接和带宽。If the size does not increase or only increases very slowly, it is recommended to double-check the network connectivity and bandwidth.

可以得出 Intune 和网络基础结构按预期方式工作的结论后,应从 OS 的角度进一步分析问题。Once you can conclude that both Intune and the network infrastructure work as expected, you should further analyze the issue from an OS perspective. 考虑以下情况:Consider the following conditions:

  • 目标设备必须在 Windows 10 创意者更新或更高版本上运行。The target device must run on Windows 10 Creators Update or later.
  • Intune 部署应用程序时,未打开任何现有 Office 应用。No existing Office apps are opened while Intune deploys the applications.
  • 已正确从设备中删除 Office 的现有 MSI 版本。Existing MSI versions of Office have been properly removed from the device. Intune 利用与 Office MSI 不兼容的 Office 即点即用。Intune utilizes Office Click-to-Run which is not compatible with Office MSI. 本文档进一步介绍了此行为:This behavior is further mentioned in this document:
    不支持在同一台计算机上随即点即用和 Windows Installer 一起安装的 OfficeOffice installed with Click-to-Run and Windows Installer on same computer isn't supported
  • 登录用户应拥有在设备上安装应用程序的权限。The sign-in user should have permission to install applications on the device.
  • 根据 Windows 事件查看器日志“Windows 日志” -> “应用程序” 确认没有问题。Confirm there are no issues based on the Windows Event Viewer log Windows Logs -> Applications.
  • 在安装过程中捕获 Office 安装详细日志。Capture Office installation verbose logs during the installation. 为此,请执行以下步骤:To do this, follow these steps:
    1. 在目标计算机上为 Office 安装激活详细日志记录。Activate verbose logging for Office installation on the target machines. 为此,请运行以下命令以修改注册表:To do this, run the following command to modify the registry:
      reg add HKLM\SOFTWARE\Microsoft\ClickToRun\OverRide /v LogLevel /t REG_DWORD /d 3
    2. 将 Microsoft 365 应用版再次部署到目标设备。Deploy the Microsoft 365 Apps to the target devices again.
    3. 等待大约 15 到 20 分钟,然后跳到“%temp%”文件夹和“%windir%\temp”文件夹,按“修改日期”排序 ,选取根据重现时间修改的“{Machine Name}-{TimeStamp}.log”文件 。Wait approximately 15 to 20 minutes and go to the %temp% folder and the %windir%\temp folder, sort by Date Modified, pick the {Machine Name}-{TimeStamp}.log files that are modified according to your repro time.
    4. 运行以下命令以禁用详细日志:Run the following command to disable verbose log:
      reg delete HKLM\SOFTWARE\Microsoft\ClickToRun\OverRide /v LogLevel /f
      详细日志可以提供有关安装过程的详细信息。The verbose logs can provide further detailed information on the installation process.

在安装应用套件期间出错Errors during installation of the app suite

有关如何查看详细安装日志的信息,请参阅如何启用 Microsoft 365 应用版 ULS 日志记录See How to enable Microsoft 365 Apps ULS logging for information on how to view verbose installation logs.

下表列出了用户可能会遇到的常见错误代码及其含义。The following tables list common error codes you might encounter and their meaning.

Office CSP 的状态Status for Office CSP

状态Status 阶段Phase 说明Description
1460 (ERROR_TIMEOUT)1460 (ERROR_TIMEOUT) 下载Download 下载 Office 部署工具失败Failed to download the Office Deployment Tool
13 (ERROR_INVALID_DATA)13 (ERROR_INVALID_DATA) - 无法验证下载的 Office 部署工具的签名Cannot verify the signature of the downloaded Office Deployment Tool
来自 CertVerifyCertificateChainPolicy 的错误代码Error code from CertVerifyCertificateChainPolicy - 下载的 Office 部署工具的证书检查失败Failed certification check for the downloaded Office Deployment Tool
997997 WIPWIP 安装Installing
00 安装后After installation 安装成功Installation succeeded
1603 (ERROR_INSTALL_FAILURE)1603 (ERROR_INSTALL_FAILURE) - 任何先决条件检查失败,如:SxS(尝试在安装 2016 MSI 时安装)版本与其他版本不匹配Failed any prerequisite check, such as:SxS (Tried to install when 2016 MSI is installed)Version mismatchOthers
0x8000ffff (E_UNEXPECTED)0x8000ffff (E_UNEXPECTED) - 尝试在计算机上没有即点即用 Office 时卸载Tried to uninstall when there is no Click-to-Run Office on the machine
1700217002 - 未能完成方案(安装)。Failed to complete the scenario (install). 可能的原因:用户取消了安装;另一个安装取消了安装;安装期间磁盘空间不足;语言 ID 未知Possible reasons:Installation canceled by userInstallation canceled by another installationOut of disk space during installationUnknown language ID
1700417004 - 未知 SKUUnknown SKUs

Office 部署工具错误代码Office Deployment Tool error codes

方案Scenario 返回代码Return code UIUI 备注Note
没有可用的即点即用安装时卸载工作量Uninstall effort when there is no active Click-to-Run installation -2147418113、0x8000ffff 或 2147549183-2147418113, 0x8000ffff or 2147549183 错误代码:30088-1008 错误代码:30125-1011 (404)Error Code: 30088-1008Error Code: 30125-1011 (404) Office 部署工具Office Deployment Tool
安装 MSI 版本时安装Install when there is MSI version installed 16031603 - Office 部署工具Office Deployment Tool
用户或另一个安装取消了安装Installation canceled by user, or by another installation 1700217002 - 即点即用Click-to-Run
尝试在安装了 32 位的设备上安装 64 位。Try to install 64-bit on a device that has 32-bit installed. 16031603 - Office 部署工具返回代码Office Deployment Tool return code
尝试安装未知的 SKU(不是 Office CSP 的合法用例,因为我们只应传入有效的 SKU)Try to install an unknown SKU (not a legitimate use case for Office CSP since we should only pass in valid SKUs) 1700417004 - 即点即用Click-to-Run
空间不足Lack of space 1700217002 - 即点即用Click-to-Run
即点即用客户端无法启动(意外)The Click-to-Run client failed to start (unexpected) 1700017000 - 即点即用Click-to-Run
即点即用客户端无法将方案加入队列(意外)The Click-to-Run client failed to queue scenario (unexpected) 1700117001 - 即点即用Click-to-Run

后续步骤Next steps