Quick fix: Right-click on files inside OneDrive folders is slow because Windows queries the OneDrive cloud status before showing the context menu. Switch the affected files/folders to Always keep on this device via right-click → OneDrive icon → tick it. Or change OneDrive’s Files On-Demand behavior to make all files local.
You right-click a file in your OneDrive folder. Windows pauses for 2–5 seconds before the context menu appears. Right-clicking outside OneDrive (Desktop, Documents not under OneDrive) is instant. The pause is caused by OneDrive’s shell extension synchronously asking the cloud for the file’s status (online, locally available, or sync-pending) before populating the menu.
Affects: Windows 11 (and Windows 10) with OneDrive Files On-Demand enabled.
Fix time: ~5 minutes.
What causes this
OneDrive’s Files On-Demand feature shows cloud-only files as placeholders in File Explorer. The cloud status (green check, blue cloud, sync arrows) is queried per-file by OneDrive’s shell extension. When you right-click, the shell extension fetches status synchronously from OneDrive’s sync state — and if the OneDrive client is busy syncing, throttled, or has a flaky network connection, the query takes seconds.
The delay can also worsen on folders containing many files (1000+), because OneDrive may scan multiple files when calculating folder-level status for the context menu.
Method 1: Always keep specific files on device
The simplest fix for files you use frequently.
- Open File Explorer. Navigate to the OneDrive folder containing the slow files.
- Select the file or subfolder. Right-click. (This first right-click might still be slow.)
- In the context menu, look for the OneDrive section: Always keep on this device, Free up space, etc.
- Choose Always keep on this device. OneDrive downloads the full file content if not already present and marks it with a green check (locally available, will stay).
- Future right-clicks on this file are fast because OneDrive caches the local-availability status.
- For an entire folder: select the folder → right-click → Always keep on this device. Applies to all current and future contents.
This is the per-file targeted approach. Use it for documents and folders you use daily.
Method 2: Disable Files On-Demand entirely
For users who have enough disk space and want all OneDrive files local. Eliminates the cloud-query delay entirely.
- Click the OneDrive cloud icon in the system tray.
- Click the gear icon → Settings.
- In the OneDrive Settings dialog, go to the Sync and backup tab.
- Click Advanced settings.
- Find Files On-Demand. Click Download all files (the option may also be labeled Free up space for the opposite direction).
- OneDrive downloads every cloud-only file to local storage. This can take minutes to hours depending on file count and bandwidth.
- After all files are local, right-click in OneDrive folders becomes as fast as non-OneDrive folders.
- To prevent automatic reversion: in the same Advanced settings, ensure Always keep these files on this device is enabled, not Save space and download files as you use them.
The trade-off: full local copy uses your full OneDrive storage in local disk space. For users with 100+ GB OneDrive and small SSDs, Method 1 is better; for users with ample disk, Method 2 eliminates the issue completely.
Method 3: Remove conflicting shell extensions
For when the slow right-click isn’t specifically due to OneDrive but happens in OneDrive folders because something else is slow there too.
- Download ShellExView from NirSoft (free): nirsoft.net/utils/shexview.html.
- Run as administrator. Click Options → Filter by Extension Type → tick Context Menu.
- Sort by Company column. Look for non-Microsoft entries from cloud services (Dropbox, Box, Google Drive Backup & Sync), antivirus software, and old archive tools.
- Right-click each non-Microsoft entry → Disable Selected Items. Disable in batches of 3–5.
- Restart Windows Explorer: open Task Manager → right-click Windows Explorer → Restart.
- Test right-click in OneDrive folder. If now fast, you’ve identified the culprit; re-enable extensions one at a time to find the exact offender.
- Common slow extensions to disable: outdated 7-Zip versions, WinRAR shell entries, OEM utilities (HP, Dell, Lenovo right-click menu items), antivirus “scan with [AV]” entries.
This route catches the cases where the slow context menu isn’t OneDrive’s fault — a different shell extension is also slow, but the symptom is most visible in OneDrive folders because OneDrive itself adds latency.
How to verify the fix worked
- Open a OneDrive folder. Right-click a file. Context menu should appear within 200 ms (instant feel).
- Open a non-OneDrive folder (e.g.,
C:\WindowsorC:\Users\Public). Right-click. Compare latency — should now be similar. - Right-click on a folder with 100+ files inside. Even folders shouldn’t take more than 500 ms to show the context menu.
If none of these work
If right-click is still slow after Methods 1–3, the cause is likely an antivirus or backup product hooking the shell. Antivirus shell scanning: many AV products (Avast, AVG, McAfee) scan files before showing the context menu. Disable real-time scanning temporarily to confirm; if right-click becomes fast, the AV is the cause — check AV settings for “scan on context menu” or similar option and disable it. Other cloud sync clients: if you have Dropbox or Google Drive running alongside OneDrive, both can compete for shell-extension cycles. Close those clients via tray icon and retest. Slow disk: failing SSDs degrade I/O latency, which compounds OneDrive’s cloud-query overhead — run CrystalDiskInfo to check SSD health. If TBW (Total Bytes Written) is near the drive’s rated max or temperature is high, the drive is the bottleneck regardless of OneDrive.
Bottom line: The slow OneDrive right-click is the Files On-Demand cloud-status query. “Always keep on this device” per file/folder, or disable Files On-Demand entirely, removes the delay.