Forum Discussion
Start OneDrive when using a RemoteApp in WVD
- Sep 26, 2019
We are in the process of documenting how to auto-start OneDrive in a Remote App scenario.
We will be documenting the following registry entry:
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RailRunonce
I believe this works the same as the regular run keys, except that anything listed under this key will be launched when the remote session starts.
What happens is that in a remote session, Explorer.exe is not used as the Windows shell. rdpshell.exe is run instead. rdpshell.exe does not process Run entries. It does do the RailRunonce key though.
This thread contains a lot of good information regarding running OneDrive in AVD/WVD with RemoteApps and I have been using the setting described here for several years successfully.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RailRunOnce]
"OneDrive"="\"C:\\Program Files\\Microsoft OneDrive\\OneDrive.exe\" /background"
I'm currently having an issue with one of my clients where the OneDrive client will start at logon but the tray icon is missing/hidden. This particular deployment has been in production for some time now and was previously working without issue. The OneDrive process can be seen running in TaskManager as the user who initiated the remoteApp session. Stopping the process and starting OneDrive using 'Run new task' in the Task Manager, results in the same missing icon issue. However, if you stop the running process and launch OneDrive using a published OneDrive remoteApp, the tray icons are restored.
Has anyone experienced similar issues?
Session Host
- Windows Server 2019 Datacenter 1809 build 17763.5122
- Microsoft OneDrive 23.231.1107.0002, per-machine installation.
- FSLogix 2.9.8228.50276 // FSLogix user profiles are not in use on this system.
Client Computers
- Windows Server 2019 Datacenter 1809 build 17763.5122 // Remote Desktop 1.2.4763.0
- Windows 10 Pro 22H2 // Remote Desktop 1.2.4763.0
Do we still know if the RailRunonce regkey solution still works for OneDrive Remote Apps to initiate the OneDrive Sync Service?
I'm having issues getting the OneDrive.exe to start when using the RailRunOnce reg when remote apps are started. (also tried with REG_EXPAND_SZ key and also pointing to x86)
If I bundle onedrive.exe as a remote app and launch that, the OneDrive sync service starts.
Session Host
- Windows 10 Multi-session host 22H2 19045.3803
- Microsoft OneDrive 23.246.1127.0002, per-machine installation.
- FSLogix 2.9.8612.60056, User Profiles
- LondonInf90Jul 10, 2024Copper ContributorAlso having problems here, it worked once and then stopped working. I already integrated bnicholson80 suggestions to remove Onedrive from Run and RunOnce default user keys. No effect. It's crazy that this has been available in preview windows 11 since 2023 and still isn't out of preview?!