OneDrive error: OneDrive cannot connect to windows

9,990

Solution 1

This is a bug that might be fixed in the upcoming Windows 10 Build 17046. The article Fixes and Known Issues in Windows 10 Build 17046 lists this fix :

We fixed an issue resulting in Insiders with certain third party antiviruses and OneDrive Files on Demand enabled seeing an error in recent builds citing “OneDrive cannot connect to Windows”.

There may be a meantime solution from the Connecticut State Colleges & Universities IT Support Center, if this applies to your case :

If you have been using the OneDrive sync client without Files On-Demand and then enable Files On-Demand, some users have reported that they received an error "OneDrive cannot connect to Windows" preventing them from enabling Files On-Demand:

This is because the sync location being used is not the local hard drive and instead is using either an external USB or hard drive which cannot be used for the OneDrive sync location. You will need to go to OneDrive sync client settings tab (from the sys tray), on the Account tab unlink the PC from the account and then add the account again but this time select the local hard drive as the sync location.

Solution 2

What worked for me is following the steps in the link https://www.drivethelife.com/windows-10/there-was-a-problem-connecting-to-onedrive-windows-10.html.
In an elevated prompt, type in:

  • netsh int ip reset
  • netsh winsock reset

Then reboot

Share:
9,990

Related videos on Youtube

tdoctorman
Author by

tdoctorman

Updated on September 18, 2022

Comments

  • tdoctorman
    tdoctorman over 1 year

    I'm working on setting up a Citrix XenDesktop ltsr 7.15 environment with FSLogix profile/office 365 containers for my company and one of the requirements I was given was to have onedrive setup by default to store documents on the cloud only.

    On a normal desktop this is pretty easy to accomplish, just set A GPO to enable "files-on-demand" by default, however when I enabled the policy for my virtual environment files are still being cached locally on the drive with no error given.

    I disabled the setting and enabled it through one drives settings menu and now I get the following error:

    enter image description here

    The only suggestions I've found so far are running updates, using the /reset option with the executable, and running the installer again after login. None of these methods have worked for me so far, I'm still not even sure what is causing the error. I've heard it's been fixed in windows 10 1803 but Citrix isn't working with that version yet so I have to hold off on that update for now.

    Does anyone out there have an idea that I haven't seen yet?

  • tdoctorman
    tdoctorman over 5 years
    I'll try this fix and get back to you on it, but this sounds like it could be the case, FSLogix is a system that redirects user data such as the onedrive folder to a .VHDX file on a network share but the operating system is supposed to see it as a local drive path still. The OneDrive component of this is still a relatively new piece and may not be 100% seamless as they claim it should be.
  • tdoctorman
    tdoctorman over 5 years
    Still no luck, I created c:\OneDrive-FoD for the sync location and FSLogix still appears to be redirecting to the network .VHDX file, I think I need to take this issue up with their support team specifically and see if they have run into this before. I appreciate all the feedback today, you've been very helpful.
  • tdoctorman
    tdoctorman over 5 years
    Alright, So I contacted FSLogix support and they figured it out, the issue was that I was still using version 2.8 and support for onedrive files on-demand wasn't added until version 2.9. I probably would have kept going in circles if you hadn't found that second article you posted. I would not have suspected the drive location would have been the issue. Thanks again for all your help, I'll mark this answered.
  • Erjen Rijnders
    Erjen Rijnders over 4 years
    Thanks Pascal, for me this was definitely the right answer. I have had this problem after updating to the very last version, reinstalling OneDrive (which solves it for some time) but this permanently fixed it for me. Thanks a lot
  • Pascal
    Pascal over 4 years
    Sure. You're welcome. I find it that it always eventually comes back after a couple of weeks. I just re-execute it.
  • TheUnexpected
    TheUnexpected over 4 years
    This worked for me too!
  • cyptus
    cyptus over 4 years
    only this worked for me
  • cyptus
    cyptus over 4 years
    microsofts help did not work for me, i have already been in state 4 (STARTED): support.office.com/en-us/article/…
  • Emyl
    Emyl about 4 years
    That should be the correct answer.
  • Apache
    Apache about 4 years
    This works but every few days I have to do it again.... ridiculous, Microsoft.. :(
  • Pascal
    Pascal almost 4 years
    @Apache after a few times doing this, this problem eventually went away.