在每台计算机上安装同步应用程序Install the sync app per machine

默认情况下,每个用户都会安装 OneDrive 同步应用程序,这意味着需要为 localappdata%% 文件夹下的 PC 上的每个用户帐户安装 OneDrive.exe。By default, the OneDrive sync app installs per user, meaning OneDrive.exe needs to be installed for each user account on the PC under the %localappdata% folder. 使用新的每计算机安装选项,您可以在 "Program Files (x86) " 或 "Program Files" (目录下安装 OneDrive,具体取决于 OS 体系结构) ,这意味着计算机上的所有配置文件都将使用相同的 OneDrive.exe 二进制文件。With the new per-machine installation option, you can install OneDrive under the "Program Files (x86)" or "Program Files" directory (depending on the OS architecture), meaning all profiles on the computer will use the same OneDrive.exe binary. 除了安装同步应用的位置外,行为是相同的。Other than where the sync app is installed, the behavior is the same.

新的每计算机同步应用程序提供:The new per-machine sync app provides:

  • 从以前的 OneDrive for Business 同步应用自动转换 ( # A0) Automatic transitioning from the previous OneDrive for Business sync app (Groove.exe)
  • 从每个用户到每台计算机的自动转换Automatic conversion from per-user to per-machine
  • 在新版本可用时自动更新Automatic updates when a new version is available

每计算机同步应用支持在 Microsoft 365 和 SharePoint Server 2019 中同步 OneDrive 和 SharePoint 文件。The per-machine sync app supports syncing OneDrive and SharePoint files in Microsoft 365 and in SharePoint Server 2019.

RequirementsRequirements

部署说明Deployment instructions

  1. 下载 OneDriveSetup.exe。Download OneDriveSetup.exe.
  2. 在命令提示符窗口中运行 "OneDriveSetup.exe/allusers" (将导致 UAC 提示符) 或使用 Microsoft 终结点配置管理器。Run "OneDriveSetup.exe /allusers" from a command prompt window (will result in a UAC prompt) or by using Microsoft Endpoint Configuration Manager. 这将在 "Program Files (x86) \Microsoft OneDrive" 目录下安装同步应用程序。This will install the sync app under the "Program Files (x86)\Microsoft OneDrive" directory. 安装程序完成后,OneDrive 将启动。When setup completes, OneDrive will start. 如果在计算机上添加了帐户,这些帐户将自动迁移。If accounts were added on the computer, they'll be migrated automatically.

常见问题FAQ

我是否需要移动到每计算机同步应用?Do I need to move to the per-machine sync app? 每计算机同步应用程序尤其适用于多用户计算机,并且在不希望从用户配置文件中运行 exe 文件时也非常有用。The per-machine sync app is helpful especially for multi-user computers and when you don't want exe files running from the user profile.随着时间的推移,我们建议将越来越多的客户切换到每计算机安装。 Over time, we will recommend that more and more customers switch to per-machine installation.

对于每计算机安装,是否会为计算机上的所有用户共享单个 OneDrive.exe 进程?With per-machine installation, will a single OneDrive.exe process be shared by all users on the computer? 否,尽管安装了单个版本的 OneDrive.exe,但会为计算机上的每个 OneDrive 帐户同步创建一个新的进程。No, although a single version of OneDrive.exe is installed, a new process is created for every OneDrive account syncing on the computer.

同一更新响铃是否适用于每台计算机?Will the same update rings apply to per-machine? 如果已通过 Windows 预览体验成员计划Office 预览体验 计划) 选择内部人员环 (,或者处于默认生产环中,则您将继续处于与之前相同的环中。If you selected the Insiders ring (via the Windows Insider program or Office Insider programs) or are in the default Production ring, you will continue to be in the same ring as before.

过去,您可能已在 HKCU 下使用了用户组策略 () 选择 "延期环" (接收延迟环) 上的 OneDrive 同步应用更新In the past you may have used a user group policy (under HKCU) to select the Deferred ring (Receive OneDrive sync app updates on the Deferred ring). 此组策略将不会适用于每计算机安装。This group policy will not work with the per-machine install. 若要选择铃声,请使用 HKLM) 下的计算机组策略 ( (设置同步应用程序更新环) 。To select the ring, use the computer group policy (under HKLM) instead (Set the sync app update ring).

每计算机同步应用是否遵循与每用户同步应用相同的更新过程/节奏?Does the per-machine sync app follow the same update process/cadence as the per-user sync app? 是的,每台计算机同步应用程序将在与每用户同步应用程序相同的节奏上自动更新,并且支持相同震铃 (请参阅上述问题) 。Yes, the per-machine sync app will auto-update on the same cadence as the per-user sync app and the same rings are supported (see question above). 发行说明相同。The release notes are the same. 有关同步应用更新过程的详细信息More info about the sync app update process

同步应用是服务和非常瘦客户端的扩展,因此自动更新到最新版本对于维护高质量的同步体验至关重要。The sync app is an extension of the service and a very thin client so auto-updating to the latest version is critical to maintaining a high-quality sync experience. 因此,我们建议您将用户保留在默认的生产环中,并依赖自动更新来处理最新版本的更新。As a result, we recommend that you keep your users in the default Production ring and rely on auto-update to take care of updating to the latest version. 如果您的组织要求您通过配置管理器手动部署更新,我们建议您选择延期铃声,并在自动更新生效之前部署即将推出的内部版本,如下面所述。If your organization requires you to deploy updates manually through Configuration Manager, we recommend that you select the Deferred ring, and deploy the upcoming builds before auto-update takes effect as described here.

每台计算机的同步应用程序的自动更新是否需要用户干预?Do automatic updates of the per-machine sync app require user intervention? 对于每台计算机的同步应用程序,无需用户干预即可自行更新。User intervention is not required for the per-machine sync app to update itself. 首次设置时需要提升。Elevation is required when you first set it up. 在安装过程中,我们会安装计划任务和 Windows 服务,这是因为它们在提升模式下运行,无需用户干预即可以静默方式执行更新。During setup, we install a scheduled task and a Windows service, which are used to perform the updates silently without user intervention since they run in elevated mode.

如果需要,我如何还原为每用户同步应用?How do I revert back to the per-user sync app if required? 我们不支持从每台计算机到每用户的自动迁移。We do not support automated migration from per-machine to per-user. 若要在每台计算机上安装后还原,请卸载同步应用并安装不带 "/allusers" 参数的 最新已发布版本To revert back after installing per-machine, please uninstall the sync app and install the latest released version without the "/allusers" parameter.

如何通过配置管理器来检测安装?How can I detect the installation through Configuration Manager?

对于配置管理器,若要检测安装,请使用以下注册表检测规则:For Configuration Manager, to detect the install, use the following registry detection rule:

字段Field Value
配置单元Hive HKEY_CURRENT_USERHKEY_CURRENT_USER
Key SOFTWARE\Microsoft\OneDriveSOFTWARE\Microsoft\OneDrive
Value 版本Version
64位的32位32bit on 64bit TRUETRUE
类型Type 版本Version
Value 19.043.0304.000719.043.0304.0007