Forum Discussion
File Explorer is slow when traversing files synced with OneDrive
Hi,
I was in contact with Microsoft for over a year, and they finally confirmed it's a bug. a fix is on the way. The following workaround has proven to be successful:
Message from support team:
The Windows team has identified a bug on their end that occurs when numerous user sessions accumulate over time leading to these performance delays.
While the OneDrive fix is rolling out, admins on the AVD / VDI machines can manually clean up the sync roots that have accumulated over time, by deleting the child keys under:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager\".
Note: We recommend that users are logged off of any active user sessions before this cleanup or that the host is rebooted after the cleanup to ensure that OneDrive correctly re-registers with Windows
I hope this will serve as a solution until the fix is released by the end of the year.
Best,
Franco
- Oliver_KrageJan 09, 2025Brass Contributor
Is there any news regarding if MS has pushed an update out to OneDrive that solves this issue?
- Oliver_KrageDec 12, 2024Brass Contributor
Any news on when this update will be released?
- gertjanvandekolkDec 12, 2024Copper Contributor
Hello,
Only that it takes a couple of months (no date received). We have the workaround active and browsing on folders is fast.
gr
- DJanmaatNov 28, 2024Copper Contributor
Did you test this solution?
I test this solution and it breaks a lot of things...
- gertjanvandekolkNov 28, 2024Copper Contributor
Hello,
We did test this yet and are now implementing this for the end-user. I cannot imagine problems in removing the subkeys because we often apply a new AVD image to the environment and then this key is also empty. But what do you see for problems?- DJanmaatNov 28, 2024Copper Contributor
Environment of 4 AVD-servers with FSLogix profiles. FSLogix is on the latest version. All Windows Updates are installed. Operating System is Windows 11 23H2.
After I made a backup of the regkey I removed the subkeys. No users were logged in.
After logging in with an useraccount the sync of multiple applications didn't work anymore. Even after a reboot of the server. I restored the regkey and it starts working again.
The only workaround that I found working is to temporary change the permission of the regkey HKEY_CLASSES_ROOT\PackagedCom\Package\Microsoft.OneDriveSync... and reverse this change. Doesn't matter which one.
After OneDrive immediatelly works like a charm. But after every new OneDriveSync version the problem reoccurs. OneDriveSync updates are installed very often and not on a specific day or time. I think of making a script to change the permission of this regkey; but is has to be scheduled to do a check and remediate every minute or so.
Can you give me more information about the environment you manage, is it the same?
- gertjanvandekolkNov 28, 2024Copper Contributor
Hello,
Did you already had an official reply when Microsoft will be fix this issue exactly?
We see same issue and is much better when removing content in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager\".
Thanks
- JosephM335Oct 31, 2024Copper Contributor
fr-ma Thank you! This worked! Makes complete sense as our OneDrive performance was getting worse as the VM was accessed by more users.
- Faz3r247Oct 28, 2024Copper ContributorHi,
Going to test this today, if this works, I may need to figure out a way to do this in an automated way. I don't really want to log on to 10 production AVD session hosts once a week to perform this clean-up. Anyone has any suggestions?
Thanks- fr-maOct 28, 2024Copper ContributorHi
Just create a scheduled task and call a powershell script:
Remove-Item -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager\* -Recurse
thanks
fix should be released in early December- JMCCRACKEN112Dec 04, 2024Copper Contributor
I'm curious, did you ever get an update as to when or if the issue was resolved? It's early December.