Fabrikam has an Azure Virtual Desktop pooled host pool. The session hosts run Windows 11 Enterprise multi-session and are managed by Configuration Manager. Many users share each session host.
You are deploying the OneDrive sync app. The deployment must meet the following requirements:
- The sync app must be installed once on each session host, not once for each user.
- No OneDrive executable files may run from user profile folders.
- The deployment must be performed centrally from Configuration Manager without administrators signing in to individual session hosts.
- Configuration Manager must confirm the per-machine installation by using a detection rule.
Which deployment approach meets all the requirements?
On multisession hosts shared by many users, the per-machine option installs the sync app once per machine, in Program Files rather than in each user's %localappdata% folder. This keeps OneDrive executables out of user profiles. Setup with /allusers can be deployed through Configuration Manager instead of being run interactively on each host. The documented way to verify a per-machine installation is a registry detection rule on the Version value under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive.
- Not correct: Deploy
OneDriveSetup.exewithout parameters from Configuration Manager to each user, with a detection rule on theVersionvalue underHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive. Without /allusers, the sync app installs per-user. That means one installation for each user account, under %localappdata% in the user profile. - Not correct: Deploy
OneDriveSetup.exe /allusersfrom Configuration Manager, with a detection rule onOneDrive.exeunder%localappdata%\Microsoft\OneDrive. A per-machine installation places OneDrive under Program Files or Program Files (x86), not under %localappdata%. A rule that looks in the user profile would not confirm the per-machine installation. - Not correct: Sign in to each session host, run
OneDriveSetup.exe /allusersfrom a command prompt, and check theVersionvalue underHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive. This produces a per-machine installation. However, running setup from a command prompt on each host means an administrator works on every session host, and it raises a User Account Control prompt. - Correct: Deploy
OneDriveSetup.exe /allusersfrom Configuration Manager, with a detection rule on theVersionvalue underHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive. The /allusers parameter installs the sync app once per machine under Program Files. Setup can be run by Configuration Manager. The HKLM OneDrive Version value is the documented detection rule for a per-machine installation.