When you open File Explorer in Windows 10 or Windows 11, OneDrive Files On-Demand icons may display incorrect status indicators. A file you know is synced locally shows a cloud icon, or a file you expect to be online-only shows a green checkmark. This problem often stems from a corrupted icon cache, a stalled OneDrive sync process, or a mismatch between the file system attributes and the sync database. This article explains why the icons become inaccurate and provides a series of targeted fixes to restore correct status indicators.
Key Takeaways: Restoring Correct OneDrive Files On-Demand Icons
- Restart OneDrive via system tray: Forces the sync engine to reload and re-evaluate file status.
- Clear icon cache using Command Prompt: Deletes corrupted icon database files that cause wrong overlay icons.
- Reset OneDrive sync using Settings: Repairs the local sync database without losing files.
- Disable and re-enable Files On-Demand: Re-registers the overlay shell extension in Windows Explorer.
Why OneDrive Files On-Demand Icons Display Incorrect Status
OneDrive Files On-Demand uses a set of overlay icons in File Explorer to show whether a file is stored locally, in the cloud, or actively syncing. These icons come from a Windows shell extension that reads file attributes and sync metadata. When the sync engine or the icon cache becomes corrupted, the shell extension cannot retrieve the correct status. Common triggers include a sudden system shutdown during a sync operation, a network interruption that leaves the sync database in an inconsistent state, or a conflict between third-party file management tools and the OneDrive overlay. The problem is not with the files themselves — they remain accessible — but the visual feedback becomes unreliable.
Steps to Fix OneDrive Files On-Demand Icon Status
- Restart OneDrive
Right-click the OneDrive cloud icon in the system tray near the clock. Select Pause syncing and choose 2 hours. After the pause completes, right-click the icon again and select Resume syncing. This action forces OneDrive to re-evaluate all file statuses. If the icon does not appear in the system tray, press the Windows key, type OneDrive, and press Enter to launch it. - Clear the Icon Cache
Open Command Prompt as administrator. Type taskkill /IM explorer.exe /F and press Enter. Then type cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer and press Enter. Type del iconcache /a and press Enter to delete all icon cache files. Type start explorer.exe and press Enter to relaunch File Explorer. The overlay icons will rebuild from fresh cache data. - Reset OneDrive Sync
Press the Windows key, type OneDrive, and select OneDrive Settings. Go to the Account tab. Click Unlink this PC and confirm. After unlinking, sign back into OneDrive with the same Microsoft account. This process rebuilds the local sync database and often corrects persistent icon mismatches. Your files remain in the cloud and will re-sync to your PC. - Disable and Re-enable Files On-Demand
Right-click the OneDrive system tray icon and select Settings. On the Sync and backup tab, uncheck Save space and download files as you use them. Click OK. Restart File Explorer by opening Task Manager (Ctrl+Shift+Esc), right-click Windows Explorer, and select Restart. Then re-enable the same setting. This re-registers the overlay icon handler in Windows. - Run the OneDrive Sync Troubleshooter
Press the Windows key, type troubleshoot, and select Troubleshoot settings. Under Additional troubleshooters or Other troubleshooters, find OneDrive Sync and run it. This built-in tool checks for common sync issues and can reset the overlay icon state automatically.
If OneDrive Icons Still Show Wrong Status After the Fix
OneDrive Icon Shows a Cloud Icon for a Locally Available File
This indicates that the file attribute marking it as locally pinned has been lost. Right-click the file in File Explorer and select Always keep on this device. OneDrive will re-download the file and update the overlay icon to a green checkmark. If the problem affects many files, select the parent folder and apply the same setting.
OneDrive Icon Shows a Green Checkmark for a File That Is Not Synced
The file may have been marked as locally available through a previous sync but is now orphaned. Open OneDrive in your web browser, locate the file, and verify it exists. If it does not exist in the cloud, delete the local copy. If it exists, right-click the file in File Explorer and select Free up space to revert it to an online-only state, then re-download it.
All OneDrive Icons Are Missing from File Explorer
The overlay icon handler may be disabled in Windows Registry or overridden by another application. Press the Windows key, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers. Ensure that OneDrive entries (they begin with a space to sort them first) are present and not prefixed with a minus sign. If they are missing, restart OneDrive or reinstall the application. Do not modify the registry unless you are confident in the change.
| Item | Correct Icon | Wrong Icon |
|---|---|---|
| File stored only in the cloud | White cloud outline | Green checkmark or solid cloud |
| File downloaded and available offline | Green checkmark | White cloud outline |
| File actively syncing | Circular blue arrows | Static cloud or checkmark |
| File that failed to sync | Red circle with white X | No icon or green checkmark |
You can now identify and fix incorrect OneDrive Files On-Demand icons by restarting the sync engine, clearing the icon cache, or resetting the sync connection. For persistent issues, the registry check or the OneDrive Sync troubleshooter provides a deeper recovery path. After applying these fixes, monitor the icons for 24 hours to confirm the status remains accurate.