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 in WVD, but when i start a RemoteApp, the OneDrive client isn't starting.
Is this a WVD / FSLogix related issue? And how can i solve this?
Thanks,
Leon
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.
- Malith_MadushankaCopper ContributorI had similar problems as you guys, The only way i managed to work around this mess is adding One Drive as a startup program through GPO : administrative templates\System/Logon\ Run these programs at user logon - "C:\Program Files\Microsoft OneDrive\OneDrive.exe" /background.
Also make sure to deleted the OD update checking Scheduled task on the Task scheduler if you are VDI/AVD.
I doubt they will do any fixes for Win10. Their hard focus is 11, and it is a complete different approach to the OS (with MSIX apps and all). So difficult to think. - Anon4343Brass ContributorLooks like Microsoft now supports this functionality.
https://learn.microsoft.com/en-us/azure/virtual-desktop/onedrive-remoteapp- Reliance9636Copper Contributor
Thanks for your reply. Unfortunately, that article specifically states Windows 11 as a requirement. Setting that registry value has no effect on a Windows Server 2019 session host. The OneDrive process is not started after launching a remoteApp.
- martijnk79Brass ContributorFor Windows 11 AVD it only works with the preview version, so useless in production. I'm using the railrunonce workaround there as well.
- Reliance9636Copper Contributor
This thread contains a lot of good information regarding running OneDrive in AVD/WVD with RemoteApps and I have been using the setting described here for several years successfully.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RailRunOnce]
"OneDrive"="\"C:\\Program Files\\Microsoft OneDrive\\OneDrive.exe\" /background"I'm currently having an issue with one of my clients where the OneDrive client will start at logon but the tray icon is missing/hidden. This particular deployment has been in production for some time now and was previously working without issue. The OneDrive process can be seen running in TaskManager as the user who initiated the remoteApp session. Stopping the process and starting OneDrive using 'Run new task' in the Task Manager, results in the same missing icon issue. However, if you stop the running process and launch OneDrive using a published OneDrive remoteApp, the tray icons are restored.
Has anyone experienced similar issues?
Session Host
- Windows Server 2019 Datacenter 1809 build 17763.5122
- Microsoft OneDrive 23.231.1107.0002, per-machine installation.
- FSLogix 2.9.8228.50276 // FSLogix user profiles are not in use on this system.
Client Computers
- Windows Server 2019 Datacenter 1809 build 17763.5122 // Remote Desktop 1.2.4763.0
- Windows 10 Pro 22H2 // Remote Desktop 1.2.4763.0
- DarrenCedermanCopper Contributor
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
- LondonInf90Copper ContributorAlso having problems here, it worked once and then stopped working. I already integrated bnicholson80 suggestions to remove Onedrive from Run and RunOnce default user keys. No effect. It's crazy that this has been available in preview windows 11 since 2023 and still isn't out of preview?!
- mirthrockBrass Contributor
Just a heads up to everyone who is using RailRunOnce in the registry. Microsoft updated OneDrive to a 64bit client which changed the path for me. It no longer lives in ProgramFilesx86. So make sure you update your registry key accordingly.
- adam222Copper Contributor
mirthrock Hi, I a came across this problem last week. Took me a while to sort.
Annoyingly, what I am seeing now is that even on a x64 system, the newest version (21.109.0530.001) released June 15, 2021 is installing back into the Program Files (x86) folder which is crazy Microsoft!
Anyone seeing the same behaviour?
- Mtollex70Brass ContributorI even had a deployment for a customer with two hosts, Onedrive updated 21. juni on one of them, 22. juni on the other. The first was installed in Program Files, the second in Program Files (X86). Crazy!! Both servers from same image.
- JeremyEsposito
Microsoft
Hi Leon,
My name is Jeremy Esposito and I’m a SPO/OD Senior Support Escalation Engineer.
Can you confirm you are have FSLogix version 2.8 and higher?This is mentioned as a requirement in the OneDrive sync restrictions documentation.
Happy to help investigate/resolve this issue.
Let me know if you have any questions.Thanks!
Jeremy
- mshepherdCopper Contributor
JeremyEsposito I have the same scenario happening. I've also confirmed it happens on an 2019 RDSH server. it has nothing to do w/ FSLogic... but the fact that remoteapp launches a stripped down user session and only launches necessary items. id' love a work around too!
- Brent CarlsonCopper Contributor
I too have the same issue in both WVD using Windows 10 multi-user and on Server 2016/2019. It's not great but I did find a workaround. I made sure that OneDrive was installed in Machine mode (instead of the default user mode), then I created a RemoteApp for the system install of OneDrive. Now, I just tell people using the system to make sure they run the OneDrive RemoteApp whenever they start a new session. It's not great, and is preventing any kind of company wide roll-out, but it works for advanced users. I too would like a better solution thou...
- wprobascoCopper Contributor
I was having this issue as well. I found out that OneDrive did not install properly from the proplus deployment. Microsoft recently release the OneDrive machine install. This worked for me so far.
https://docs.microsoft.com/en-us/onedrive/per-machine-installation
- DjTjon01Copper Contributor
Well i did install the OneDrive Machine install, but it still won't start when i use a RemoteApp. I checked the location and it is installed in the Program Files directory, so everything seems to be in order.
So thats not the solutions for me.
- cliffgu
Microsoft
If you go to C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs, can you find the OneDrive icon and start it when using the remote app?
For our troubleshooting, can you upload some screenshots about “OneDrive is starting when i'm using the ‘Full Desktop’ mode in WVD” and “when i start a RemoteApp, the OneDrive client isn't starting” for our reference?
Note: remove all private information before uploading the screenshots.
Best Regards,
Cliff