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.
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.
- Stefan GeorgievDec 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.
- luzmariaeJul 30, 2020Copper Contributor
i'm struggling with the same issue, after reading your advice I've tried but im having the "run as administrator" problem, can you kindly share how you wrote your batch file? I manually added my admin credentials as a test and found that OneDrive is not getting started... I have the following registry keys configured for autoconfigure OneDrive:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive]
"SilentAccountConfig"=dword:00000001
"FilesOnDemandEnabled"=dword:00000001is that enough?
I have RailRunOnce key as well but this just worked one time, after couple days everything stopped working.
Hope you can guide me through this as I've been suffering for couple weeks.
Regards!!
- mshepherdOct 01, 2019Copper Contributor
mirthrock Happy to say that RailRunOnce does work. However, It pop open File Explorer when you open an app. It's not the end of the world, but would be nice to find a way around that. I was going to play w/ the background parameter to see if it will work if i reference it in the reg key.
- mirthrockSep 27, 2019Brass Contributorracook 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?