"OneDrive cannot connect to Windows" error when accessing files in OneDrive

Check to see if cldflt.sys is running, and if it isn't, enable it.

  1. Press the Windows key   and browse to Windows System > Command Prompt. Right-click and select More then Run as administrator.

  2. Type cd %systemroot%\system32\drivers and press Enter.

  3. Type sc query cldflt and press Enter.

  4. Look for a line in the results called State. If the state is not 4, change the state of cldflt.sys to automatically run.

  5. To change the state, type sc config cldflt start=auto and press Enter. The dialog box should
    display [SC] ChangeServiceConfig SUCCESS.

  6. Restart your computer.