04-24-2019 01:32 AM
04-24-2019 01:32 AM
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?
04-25-2019 07:52 AM
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.
04-25-2019 08:00 AM
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.
04-25-2019 10:11 AM
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.
06-20-2019 08:26 AM - edited 06-20-2019 08:27 AM
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.
09-04-2019 02:23 PM
@Jeremy Esposito 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!
09-12-2019 06:30 AM - edited 09-12-2019 06:31 AM
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...
09-12-2019 02:58 PM
@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!
09-12-2019 04:38 PM
@Jeremy Esposito 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.
09-26-2019 07:05 AM
@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.
09-26-2019 07:51 AM - edited 09-26-2019 07:52 AM
@Jeremy EspositoHi 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.
09-26-2019 09:29 AMSolution
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:
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.
09-26-2019 10:09 AM
09-27-2019 08:25 AM
10-01-2019 02:51 PM
@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.
10-02-2019 12:39 PM
10-08-2019 05:13 AM - edited 10-08-2019 09:29 AM
@racook Would this also work in a Citrix Published Application environment? We're having the exact issue described, but for HDX sessions, we don't use RemoteApp.
OneDrive works fine in a full Published Desktop, but not in Published Applications.
EDIT: It doesn't appear to work. Seems this is a RemoteApp specific key.
10-24-2019 04:35 AM
I'm new here, but also experiencing similar issues with the OneDrive client in our RDS 2019 environment.
Users in our company login to a RDS session which seems to work fine, next they will start a RemoteApp (OneDrive will also start in the background of this RAS session).
As they modify and save files through the RAS session (Excel files, saved on there RAS desktop -> which is the Desktop in OneDrive), these files aren't visible in there RDS session after closing the RemoteApp.
Checking the OneDrive content on a laptop or online (https://xxx-my.sharepoint.com/personal/xxx/_layouts/15/onedrive.aspx) does show the saved file from the RAS session.
So it seems that the OneDrive client in the RAS environment is synced, but the OneDrive client in the RDS environment isn't. Opening the OneDrive application in the RDS session does trigger a sync and will make the saved files from the RAS session visible in their RDS session.
Note: We are using FSLogix technology with concurrent Profile & O365 containers, also I implemented the reg key as mentioned by @racook
Who can help me solving this sync issue between our RAS and RDS environment?
10-24-2019 06:21 AM - edited 10-24-2019 06:22 AM
@RubenGr Thanks for the post!
It sounds like the OneDrive sync backup feature is not configured on the users RDS, and is configured on the local computer. (or vise-versa)
Review this document and confirm if the OneDrive sync backup feature is configured in both environments.
Hope this helps!
10-25-2019 04:15 AM
Hi @Jeremy Esposito,
I checked the settings of both OneDrive clients (in RDS & RAS) and they both have the backup feature enabled.
Saving a file on the RAS Desktop works fine, checking the content of my desktop online shows the newly saved file. But after closing the RemoteApp the desktop on the RDS isn't updated, this only happens after logging off the RDS session.
Logging back on the RDS session the desktop is synced and the saved file is availible. I looks like the OneDrive client on RDS won't sync since the client on the RAS did sync earlier.
To test this senario I changed the internet connection on our RAS Server so that it communicates over another ipaddress. And what do you think.... the files are synced directly to the RDS desktop.
10-25-2019 06:14 AM
10-30-2019 10:22 AM
Hi @Jeremy Esposito,
Sorry for the misunderstanding.,,
I try to explain our scenario again, since WVD isn't available in Europe yet we use the 2019 Remote Desktop Services to let users connect to a Windows 2019 Remote Desktop Server (RDS).
So at the beginning our their workday our users startup their ThinClient and connect to a RDS... on that server I deployed Office 365 ProPlus, Teams machine-wide Installer and the OneDrive client (using the /ALLUSER parameter).
I need this system to be as uniform as it can be, because users from multiple (federated) companies log in to this server.
All other applications (specifically for the different companies) will be published trough multiple Remote App Servers (RAS)
- Company A uses custom application A
- Company B uses custom application B
On these RAS users need to import for example some Excel files which they saved in there Documents of Desktop folders (on the RDS). So therefor I've also deployed OneDrive on the RAS environment.
So for example:
A user is logged in to the RDS and starts RemoteApp A, after it is started this user needs to import a Excel file which he saved on the RDS Desktop (in my opinion only accessible through the OneDrive client, which works fine0). So importing the Excel file from the RDS Desktop, it generates some output (for example a .txt file). The users needs to save this file and wants to use this after closing the RemoteApp. If it is saved on the RAS Desktop without the OneDrive client available it will be saved on the RAS servers desktop where the users can't get to.
The thing is, as the file is saved on the RAS (OneDrive) Desktop, the RemoteApp is closed. Coming back on the RDS Desktop the .txt file isn't visible. I can trigger a sync by for example create a new folder on the RDS Desktop. Seconds after that the .txt file will become visible. But this isn't a workable way for these normal users.
11-06-2019 07:25 AM
Have adding the key:
OneDrive \ REG_SZ \ "C:\Program Files (x86)\Microsoft OneDrive\OneDrive.exe" /background
This works for all existing issues - where a profile has been created previously.
However, for any new user during logon the user session will 'hang' on the process "Run Once Wrapper"
The remote desktop client will continue with the message: "Configuring remote session..."
If you kill the Run Once Wrapper the user will login and there doesn't seem to be an issue after that.
Have you or anyone else seen this issue?
11-14-2019 06:33 AM
I have exactly the same problem. WVD environment with Windows 10 multi-user session custom image (without O365 applications) with latest updates (including 1909 version). No FSLogix in place (we don't use O365 apps within th WVD environment).
Customer has an application (non Microsoft) and wants to access files to open from OneDrive. Installed the OneDrive per machine (latest version) and applied te following reg keys for silent account config;
And the following for remote apps;
"OneDrive"="\"C:\\Program Files (x86)\\Microsoft OneDrive\\OneDrive.exe\" /background"
On question, does the last registry key be a "REG_ZG" or a "REG_EXPAND_SZ" type?
Anyway, in both cases it is not working. If I go within the app to File > Open I see OneDrive, but it is not configured / user is not signed in. I also see the OneDrive system icon from the WVD environment in my local system tray (not logged in). If I publish OneDrive.exe as a RemoteApp and start this app, OneDrive is configired correctly and OneDrive files became also available in the first RemoteApp.
When publising the full desktop everyting is working fine!
One other problem that a have and wat Baljit montioned is the hang on "Preparing Windows". This will take up to 5 minutes! This problem is only with a RemoteApp and not with a Published Desktop. This problem started when installing the OneDrive per Machine installation. If I remove OneDrive from the Hostpool, the problem is gone. No strange errors in the EventLog.
12-06-2019 07:09 AM - edited 12-06-2019 07:11 AM
02-26-2020 01:06 PM
We have been experiencing the same issues. We've tried using the reg keys however it doesnt work on the first login, it does then work if a user logs out and back in again.
The solution we have found is to publish a bat script as the remote app that launches the target app and also restarts the OneDrive sync client. This works on the first login from a clean profile:
@echo off cd "%ProgramFiles%\Windows NT\Accessories\" start wordpad.exe taskkill /F /FI "USERNAME eq %username%" /IM OneDrive.exe cd "C:\Program Files (x86)\Microsoft OneDrive\" start OneDrive.exe /background exit
While this is quite dirty but it certainly does the job, better than making all users login once and then log out and back in again for KFM and FoD to work.