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

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

Last Updated: September 19, 2018


After enabling Files on Demand in OneDrive, some customers may see the following error when trying to access items in your OneDrive folder.

  • OneDrive cannot connect to Windows. Files On-Demand requires a connection to Windows in order to show your files without taking up space on this device. OneDrive can keep trying to connect to Windows or you can choose to download all your files. You won't be able to use online-only files until this is fixed.

This is because the cldflt.sys driver is not running. 


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

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

    Command prompt menu

    Note: If you don't have administrator rights, read how to Create a local user or administrator account in Windows 10.

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

  3. Type sc query cldflt and press Enter.

    Administrator command prompt

  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.

    Command prompt with results

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

    Command prompt dialog box

  6. Restart your computer.

Read more

Learn about OneDrive Files On-Demand

Fixes or workarounds for recent issues in OneDrive

Icon Experts (brain, gears)

Ask the experts

Connect with experts, discuss the latest Excel news, updates, and best practices, and read our blog.

Microsoft Tech Community

Icon Community

Get help in the community

Ask a question and find solutions from Support Agents, MVPs, Engineers, and other Excel users.

Office Forum on Answers

Icon feature request (light bulb, idea)

Suggest a new feature

We love reading your suggestions and feedback! Share your thoughts. We're listening.

UserVoice for Office

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.