Forum Discussion
DjTjon01
Apr 24, 2019Copper Contributor
Start OneDrive when using a RemoteApp in WVD
Hi Guys, I am testing with WVD in a Lab environment, and everything is working fine. I only have one thing that doesn't seem to work. OneDrive is starting when i'm using the "Full Desktop" mode i...
- 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.
mirthrock
Sep 27, 2019Brass Contributor
racook and mshepherd - Right before I saw this post yesterday, I implemented a workaround. I wrote a batch script that launches the application I need (in this case Dynamics GP) and OneDrive with the /background switch so that it doesn't open File Explorer when it launches. Then I published that batch file as a RemoteApp (and changed the name and icon to Dynamics GP so the users don't know the difference). This combined with the group policies that autoconfigure OneDrive seemed to do the trick. However, I'd much rather go the cleaner route of using the RailRunOnce reg key instead. Did that registry key work for you?
Stefan Georgiev
Dec 03, 2020Former Employee
mirthrock our official statement is captured here https://docs.microsoft.com/en-us/onedrive/sync-vdi-support.
While it is possible to get the desired outcome as you have seen its not elegant.