安裝每個機器的同步處理應用程式Install the sync app per machine

根據預設,會為每位使用者安裝 OneDrive 同步處理應用程式,這表示必須針對電腦的% localappdata% 資料夾下的每個使用者帳戶安裝 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,具體取決於作業系統架構) ,這表示電腦上的所有設定檔都使用相同的 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 商務同步應用程式 (Groove.exe 自動轉換) 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

每個機器同步處理應用程式支援同步處理 OneDrive 和 SharePoint Microsoft 365 和 SharePoint Server 2019 中的檔案。The per-machine sync app supports syncing OneDrive and SharePoint files in Microsoft 365 and in SharePoint Server 2019.

需求Requirements

部署指示Deployment instructions

  1. 下載 OneDriveSetup.exe。Download OneDriveSetup.exe.
  2. 從命令提示字元視窗中執行 "OneDriveSetup.exe/allusers" (會導致 UAC 提示) 或使用 Microsoft 端點 Configuration Manager。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.我們建議您逐漸為每一部機器的安裝切換一或多個客戶。 Gradually, it is recommended 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 are in the same ring as before.

在過去,您可能已在 HKCU) 下使用使用者 (原則,以選取 [延遲的環] 上的 [延遲的環 (接收 OneDrive 同步應用程式更新 ]) 。In the past, you may have used a user policy (under HKCU) to select the Deferred ring (Receive OneDrive sync app updates on the Deferred ring). 此原則不適用於各電腦安裝。This policy won't work with the per-machine install. 若要選取振鈴,請改用 HKLM 下的電腦原則 () (設定同步應用程式更新環) 。To select the ring, use the computer 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

Sync 應用程式是服務和瘦用戶端的分機。The sync app is an extension of the service and a 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.

如果您的組織要求您透過 Configuration Manager 手動部署更新,建議您先選取延期的震鈴,然後部署即將推出的版本,再進行自動更新生效的方式。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 necessary? 我們不支援從每個機器到每位使用者的自動遷移。We don't support automated migration from per-machine to per-user. 若要在安裝每個電腦後回復,請卸載同步處理應用程式,並安裝未含 "/allusers" 參數的 最新發行版本本To revert back after installing per-machine, uninstall the sync app and install the latest released version without the "/allusers" parameter.

如何使用 Configuration Manager 偵測每一電腦的安裝?How can I detect if I have a per-machine installation through Configuration Manager?

您可以使用下列登錄偵測規則:You can use the following registry detection rule:

欄位Field Value
蜂巢Hive HKEY_LOCAL_MACHINEHKEY_LOCAL_MACHINE
索引鍵Key SOFTWARE\Microsoft\OneDriveSOFTWARE\Microsoft\OneDrive
Value 版本Version
64位32位32bit on 64bit TRUETRUE
類型Type REG_SZREG_SZ
Value 19.043.0304.000719.043.0304.0007