question

MikeGilbert-0290 avatar image
0 Votes"
MikeGilbert-0290 asked omurdeger answered

OneDrive won't start in AVD Windows 11 multi-session+Microsoft 365 apps

I'm creating an Azure Virtual Desktop host pool, with VM's configured as follows:

  • Created with template "Windows 11 Enterprise multi-session+Microsoft 365 apps"

  • Joined to Azure AD Domain Services.

  • FSLogix installed and configured

OneDrive comes pre-installed with this configuration but it just won't start; it looks like it's disabled but if I check policy it isn't. I see that the template has OneDrive pre-installed per-machine which is the correct choice for a Remote Desktop Server, and FSLogix is supposed to support OneDrive. The OneDrive icon shows up in the tray with a slash through it. If I open that icon, go into settings and click on "Add an Account" nothing at all happens it ignores me.

If I start the pre-installed Word, Excel, etc., I can see my OneDrive for Business Files under File/Open (which accesses the cloud copy). But sync seems like it's just off the table.

Other than the OneDrive problem, the VM's looks very healthy as sessions hosts. Event logs look good, group policy is applying correctly, apps run OK. So I don't really think the VM's are corrupted at the system level.

I haven't found any limitation in the documentation, so what's the story here? Can't figure out whether:

  1. Maybe OneDrive just isn't supported in this configuration?

  2. Maybe there's something wrong with the Template I chose; would it work better if I configured a plain Windows 11 multisession VM and then manually installed the Microsoft 365 apps later?

  3. Maybe this is supposed to work and I should open a support ticket?

Somebody must have tried OneDrive sync client on Windows 11 multisession before.... what was your experience?

Thanks!


azure-virtual-desktop
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Same problem here with Azure AD joined Sessionhosts.

0 Votes 0 ·
MikeGilbert-0290 avatar image
0 Votes"
MikeGilbert-0290 answered MikeGilbert-0290 commented

I got OneDrive to work but it wasn't easy, following an old article I found about how to reset OneDrive thoroughly:
1. <path to OneDrive executable> /reset (you will see OneDrive icon vanish)
2. In regedit, delete HKCU\Software\Microsoft\OneDrive, the whole key
3. Find Appdata\local\microsoft\onedrive folder (ignore onedrive folder one level up), and delete entire Settings subfolder.
4. In the start menu, find OneDrive and run it. It will prompt for your credentials and apparently initialize itself successfully. From then on it seems healthy for that user.

I also set up an identical Windows 10 multi-session with apps and FSLogix (latest template version), and OneDrive worked fine. So I think OneDrive has some bug with W11 multi-session, I hope Microsoft fixes it soon!

Above paths are from memory and might be slightly wrong but they are easy enough to find.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I found the link to the original article I used to get OneDrive to work under Windows 11 Multisession, posting here for the reference of others:

https://answers.microsoft.com/en-us/msoffice/forum/all/reset-the-onedrive-sync-client/5d769421-db9e-4a59-a1e4-6701c03f651f

If this helps or if you find out anything else about this problem, please let me know and mark my message as the answer!

1 Vote 1 ·

Thanks Mike
I think my problem is related to silentAccountConfig which does not work well under win11 multisession. I tested this with several users and always ran into problems .

0 Votes 0 ·

Hi,

Yes, I had to give up on silentAccountConfig too. If you carefully read the description, it says that it configures the "user who joined the computer to the Azure domain", which doesn't make much sense for a multisession PC.

I had the same symptom even after I stopped trying to use silentAccountConfig, and that's when the reset OneDrive procedure I posted about worked.

0 Votes 0 ·
Dominic-9496 avatar image
0 Votes"
Dominic-9496 answered

Hi.

Thanks. Yes there seem to be a few bugs in win11 multisession..... I will try your solution.

Thanks a lot

Dominic

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

omurdeger avatar image
0 Votes"
omurdeger answered

Hi,
I think this problem is not caused windows 11 multisession OS.
This problem occurs whenever Azure Virtual Desktop VM templates are created from Microsoft 365 apps with Windows 10 or 11 Multisession OS.
When I used the method below, I had no problem running OneDrive in Azure Virtual Desktop environment.

  • Creating VM template only from Windows 10 or 11 multisession image

  • Setting up Microsoft 365 Apps without OneDrive

  • Setting up OneDrive separately as per-machine

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.