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.
JeremyEsposito the reason he suggest that, and I agree, is because it then triggers the sync for that user session. so a user can then open an app, save the their desktop, and that is then sync'd to all of their other devices... making it much easier for a user to use a remoteapp. saving to a network share is not always ideal or wanted.
My goal is to do away w/ personal network drives and move to onedrive for all private info, but this not working, makes it hard to do that.
mshepherdDid you ever find a solution to this? We're using OneDrive/SharePoint for all of our users and we're publishing a couple remote apps that need OneDrive running in the background so that the user can access the SharePoint libraries via File Explorer when they're in a RemoteApp. I'm in the same boat - works fine on a full session, but doesn't work on a RemoteApp. My line of thinking is to run some sort of script or launch the OnedDrive EXE when the user launches a RemoteApp. But I haven't quite figured out how to make this work yet.
- racookSep 26, 2019
Microsoft
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.
- Anon4343Oct 23, 2020Brass Contributor
Looks like if MFA is enabled, the user will not be automatically signed in. I had to publish OneDrive and allow the user to walk through the setup process. During the process, the MFA takes place. Subsequent logins (at least on that server) do not require MFA.
- luzmariaeJul 15, 2020Copper Contributor
racook As of now, I haven't found the official documentation about the registry keys needed to make OneDrive work with a RemoteApp.
- DannyBoy65Jul 15, 2020Copper Contributor
luzmariae Hi, I´m using this one:
C:\Users\USER\AppData\Local\Microsoft\OneDrive\OneDrive.exe /background
here:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RailRunonce
Got it on this post and it works ok (maybe 98 out 100 sessions).
Please notice this is on a per use install, not a per machine one.
Best regards.
- DannyBoy65May 06, 2020Copper ContributorHi,
Just to thank racook for that registry key. Just migrated a file system to sharepoint and onedrive is where users get and save their files from remoteapp (thinstuff, btw) sessions.
Ended up adding a key for each user to avoid uninstalling user's onedrives and installing the per machine one.
Thanks! Life saver that one.- SebCerazyMay 20, 2020Iron Contributor
Even with EnableADAL=2 none of my full RD users do get auto login to OD
- JeremyEspositoSep 26, 2019
Microsoft
Thanks for the updates! Please bear with me if I'm missing the point of the use-case you are referring to.
First, in order to have the documents, desktop, pictures folders synced to OneDrive, 'OneDrive Backup' needs to be enabled in OneDrive sync.
When a user is on a local computer and launches an Office remote app (say MS-Word) then goes to File> Open>OneDrive-Tenant OR Sites-Tenant>(some folder), MS-Word uses the O365 connected service to connect to that users OneDrive or SPO site and works with/saves that file in the cloud.
In this use-case, the OneDrive sync client remote app is not needed.
- mirthrockSep 26, 2019Brass Contributor
JeremyEspositoHi Jeremey, thanks for the quick reply. Unfortunately, this isn't for an Office application, otherwise, your way would work perfectly. This is actually for a Dynamics Integration Manager flat file upload, so the user needs access to the SharePoint library via File Explorer from within Dynamics. I'm working on a solution now, but it seems the trick is to publish a Batch Script to RemoteApps that launches the Dynamics application and OneDrive. Also the RD Server needs to be set for a Single Session per user via a GPO so that they open within the same session.
- JeremyEspositoSep 26, 2019
Microsoft
My pleasure! Thanks for sharing your use-case scenario.
It sounds like you would need to run OneDrive sync locally/same computer that is running DIM or implement the workaround you detailed. Hope it works out!