Forum Discussion
File Explorer is slow when traversing files synced with OneDrive
Hello team,
I have this customer who have this AVD deployment in production, they are managing with Nerdio and they recently move their storages to Azure NetApp. Event with this very optimized environment they are facing one specific issue with the OneDrive synced folders.
They created this video that explains the issue in details. They also opened a support ticket, but they didn't help with this issue. They are facing that for a while and they are asking for more assistance.
If anyone could have any clue would be great!
A video demonstrating the issue can be found here: https://rivier.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=203b5b74-07d9-4ec1-8da0-b02a015a0e18 (the demonstration starts at the 2m10s mark).
Thank you!
90 Replies
- ErwinITHBrass ContributorTried the registry thing. It doesn't make a difference for me.
- fr-maCopper Contributor
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_KrageBrass Contributor
Is there any news regarding if MS has pushed an update out to OneDrive that solves this issue?
- Oliver_KrageBrass Contributor
Any news on when this update will be released?
- gertjanvandekolkCopper 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
- DJanmaatCopper Contributor
Did you test this solution?
I test this solution and it breaks a lot of things...
- gertjanvandekolkCopper 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?
- DJanmaatCopper Contributor
This video describes exactly the problem : https://rivier.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=203b5b74-07d9-4ec1-8da0-b02a015a0e18
Additional information; delay opening folders and files directly from the desktop (MS OneDrive redirected).
AVD-environment with FS Logix profiles. I did a thorough research.
Solution per AVD-server :
- Put the AVD-server in drain mode.
- Log off all users.
- Log on with an Administrator account.
- Remove MS OneDrive.
- Remove the following registry keys :
HKEY_CLASSES_ROOT\PackagedCom\Package > Remove all keys that begins with 'Microsoft.OneDriveSync_'
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\Package > Remove all keys that begins with 'Microsoft.OneDriveSync_'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\OneDrive- Download newest MS OneDrive cliënt :
https://support.microsoft.com/en-us/office/onedrive-release-notes-845dcf18-f921-435e-bf28-4e24b95e5fc0- Install MS OneDrive : .\OneDriveSetup.exe /allusers
- Log on with an user-account.
No need to reboot the server.
Anamolies :
- Different versions after installing MS OneDrive :
Sometimes version '22.012.0117.000' is installed, and after couple of seconds the version changes to version '24.192.923.6.0'. Other times version '24.186.0915.0004' is installed. I decided to keep the newest version '24.192.923.6.0' installed, that is mostly the version after the first reinstall.
- After reinstallation problem isn't resolved :
The permissions are exactly the same as on other AVD-servers that has the problem resolved. Strange enough when I change the permission for existing entry 'All Application Packaged' to Full Control the problem is resolved. Even when I undo the change... I think when the problem still persists you have to remove MS OneDrive once again, remove all earlier named registry entries, and install MS OneDrive again. I don't have an explanation for this.
- JamesC1920Copper Contributor
We had this issue, edited the permissions on the reg key Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\Microsoft.OneDriveSync_24180.905.1.0_neutral__8wekyb3d8bbwe
And it instantly started working as normal- DP305Copper ContributorHi James, what did you specifically change on the reg key?
- JamesC1920Copper Contributor
DP305 On the permissions, any entities that didn't have full control we just gave full control, not sure what other things that may affect but it fixed it. Procmon showed errors access the key when you browse through the folders which identified the key in question
- Oliver_KrageBrass ContributorWhat permissions did you change?
- JosephM335Copper ContributorHas anyone else noticed that it gets worse the longer the VM has been accessed by multiple users over a period of time? Not resource related, almost like something is being cached. We can't repro in UAT or prod pilot which has been accessed by limited number of users compared to prod. New prod VMs seem fine when they're first spun up, but I doubt that'll last very long.
- Faz3r247Copper Contributor
Yes noticed the same thing. For us, in order to mitigate this, once a month we refresh the prod environment coinciding with the monthly patching cycle.
- Wise_1Copper Contributor
JosephM335 Did that older version help at all?
We saw the delay even with 1 user after a reboot using the newest version.
If you have any additional data or can replicate it let me know and I will add the info to the support ticket and ICM.
- JosephM335Copper ContributorSame behavior with .156 version, unfortunately.
- Oliver_KrageBrass Contributor
Insane that MS have still not fixed this issue.
- Faz3r247Copper ContributorIts September 2024
AVD environment running windows 11 multi session
pooled session, 20 users per session
Each Host size E8s_v5
Latest Windows update applied
Latest Office 365 update applied
Latest OneDrive update applied
Latest FSLogix update applied
Using Azure Files premium shares to host users profiles and odfc containers
Even after doing all the above, still getting file explorer slowness when traversing files and folders synced with OneDrive. - Faz3r247Copper Contributor
- JoshReaverCopper Contributor
sandrocpereira any luck on this? I have been looking into it myself and have the exact same issues as in your video. I have tried everything every forum has suggested so just wondering if youve found anything recently?
- Kyle_WiseCopper ContributorWe are also getting reports of the same issue from multiple users over the past couple weeks.
- JoshReaverCopper ContributorOk so update, MS are absolutely no help and tried to make me reinstall again...
The behaviour I found was if I recreated the FSLogix profile for my test user, the initial logon had OneDrive fast, but log off and on again once and its slow for all subsequent logons.
I looked in the registry for before and after and theres nothing in there that relates to anything worthwhile so I really don't know.
- juhua
Microsoft
Hi, these steps will cover general areas that could be impacting the performance or functionality of OneDrive in such a setup:
Ensure that OneDrive is up to date on all AVD instances. An outdated OneDrive client can cause sync issues.
Use the built-in OneDrive sync health dashboard in the Microsoft 365 admin center (if available for your subscription) to check for any reported issues with user sync status.
Implement OneDrive's Files On-Demand feature to reduce the bandwidth and storage requirements on each AVD instance.
Ensure that Known Folder Move (KFM) is configured correctly to redirect Desktop, Documents, and Pictures folders to OneDrive. This helps in managing user files more efficiently.
Verify that all AVD session hosts are optimized for performance and are not over-provisioned with users, which could impact overall system resources and affect applications like OneDrive.
Consider implementing FSLogix profile containers if not already in use, which can improve the performance and manageability of user profiles in AVD environments.- robertroot679Copper Contributor
I also have the same issue. Anyone can help?
- ErwinITHBrass ContributorThis is going on for years.
I have the impression a click or right click initiates some connection to a internet service and it's waiting for a response.
A couple of years ago a right click or creating a folder took around 40 seconds.
Now its around 6~10 seconds.
That's on a standalone pc.
When my laptop has no internet it takes ages to browse folders (on always downloaded folders).
That's why I strongly believe the computer checks every time something on the internet.
It doesn't matter if onedrive is loaded or not.
I started to believe the problem lies in the amount of files I have, but I don't have this problem on all my computers.
Gonna tries this registry thing to see if it helps, but I don't really see why it would help in my case.
All the entries are syncs I use.
- matmat86Copper Contributor
sandrocpereira did any of the solutions juhua offered help you to solve that problem, which is clearly visible in the video you posted above.
- mcarloneCopper Contributor
matmat86 This is the client. No, nothing has worked for us yet. After exhausting our options with Azure support channels, we opened a second paid ticket with the Windows team. The first paid ticket was closed without resolution.
We have ruled out FSLogix as an issue. We set up a demo with Windows 11 multisession vanilla from the gallery and no FSLogix profiles. Two users logged into the same oversized host using normal local profiles. The slowness in File Explorer was present.
Slowness is present whether OneDrive sync is running or not, or whether the files are available offline (cached) or in the cloud only. Slowness happens when you right-click a file, too.
Slowness is not present in PowerShell, the File -> Open dialog box, or third-party file managers. Slowness does not appear if you use the File Explorer navigation tree--until you click a file in the main File Explorer window.