Some devices running the latest version of Windows 10 (Windows 10 version 2004) appear to be experiencing problems with Microsoft's OneDrive Files On-Demand built into the system.
Microsoft confirmed the problem with a new support page on the company's official website.
The company states that "some older devices or devices with some older applications installed that use older file system drivers" may not be able to connect to the OneDrive service through the OneDrive application.
Thus Microsoft OneDrive displays the following error message "OneDrive can not connect to Windows"
Microsoft has published two solutions to fix the problem. The first solution is based on the new Files On-Demand Troubleshooter, and the second gives us manual steps to resolve the issue.
A: Files On-Demand Troubleshooter
1. In the search, type troubleshoot and select Troubleshoot Settings.
2. Select View History on the page that opens. You may see that the Files On-Demand Troubleshooter program has run successfully, so the issue needs to be resolved, or that it has not run successfully and you need to run it again. The system should restart after the troubleshooter has successfully run.
3. Users should then verify that Files On-Demand is still enabled by right-clicking the OneDrive icon on the System Tray and selecting Settings. 4. On the Settings tab, make sure the "Save space and download files as you use them" option is enabled.
The same procedure should be repeated for each account.
B: The manual repair
In the search, type cmd, and right-click on the black command line icon. Select "run as administrator"
reg add HKLM \ System \ CurrentControlSet \ Services \ Cldflt \ instances /f /v DefaultInstance /t REG_SZ /d "CldFlt"
Then you need to restart your device.
Follow instructions 3 and 4 of the first solution above to verify that Files On-Demand is still active.