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.
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