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.
Brent Carlson Thanks for the update!
Per machine install is the only install method supported for WVD. This why you were able to get OD sync work with the per machine install method. As for running OneDrive as a remote app, it isn't necessary or useful to run OD sync as a remote app because it's not an app that users will interact with (like MS word, excel, etc) and/or access their files from.
OD sync is essentially a utility to keep the files synced to/from the cloud and monitor sync status.
Monitoring sync status should be done within the WVD session.
Hope this helps!
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.
- mirthrockSep 26, 2019Brass Contributor
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.
- 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.