Skip to content

Instantly share code, notes, and snippets.

View jonkeren's full-sized avatar

Jos Jonkeren jonkeren

View GitHub Profile
@jonkeren
jonkeren / Fix-OneDrive-Speed-Using-Registry.ps1
Created August 30, 2026 19:44
Windows 11 improve speed of navigationg Onedrive folders in Explorer
# Inspired by question of Stefan Boutsen https://superuser.com/users/2759400/stefan-boutsen
# File Explorer is slow when traversing files synced with OneDrive on Windows 11
# https://superuser.com/questions/1891413/file-explorer-is-slow-when-traversing-files-synced-with-onedrive-on-windows-11/1940024
# On Windows 11 Onedrive is very slow accessing through the main window Onedrive or SharePointsync'd folders.
# Using procmon, Explorer.exe is losing 5-6 seconds doing a lot of ReqQueryKey on the HKCU\Software\Classes\ tree.
# It boils down on changing permission to full control for the ondrivesync entries here: Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\Microsoft.OneDriveSync_xxxxxxxx to the "Everyone" account.
# No more entries logged on HKCU\Software\Classes tree. This speeds up Navigating Onedrive folders in Explorer by at least 10x.