Some devices with the latest version of Windows 10, (Windows 10 version 2004), seem to have problems with the file synchronization service (Files On Demand) of Microsoft's OneDrive built into the system.
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 search enter 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. The users θα πρέπει στη συνέχεια να επαληθεύσουν ότι το Files On-Demand εξακολουθεί να είναι ενεργοποιημένο κάνοντας δεξί κλικ στο εικονίδιο του OneDrive στο Δίσκο συστήματος και επιλέγοντας Ρυθμίσεις. 4. Στην καρτέλα Ρυθμίσεις βεβαιωθείτε ότι είναι η επιλογή “Save space and download files as you use them” 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.