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.
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