如果您使用 OneDrive 的文件按需(Files On-Demand)功能访问文件而不将它们下载到您的 PC,您可能会遇到错误,指出OneDrive 在从OneDrive访问文件时无法连接到 Windows(OneDrive cannot connect to Windows)。
File On-Demand功能让您无需先下载即可访问Windows计算机上的OneDrive文件。这样,用户可以在计算机运行不足的情况下节省一些存储空间。但是,如果OneDrive显示上面提到的错误消息,当你赶时间时可能会非常沮丧。
为什么会出现这个错误
用户可以在他/她的计算机上发现此问题的主要原因有两个。每当OneDrive需要根据用户的需求显示文件时,必须在后台运行Windows Cloud Filter Driver或cldflt.sys。如果它没有按应有的方式运行,则有可能收到此错误消息。其次,即使Windows云过滤驱动程序(Windows Cloud Filter Driver)正在运行,如果它没有附加到放置同步文件夹的驱动器上,用户也会遇到这个问题。默认情况下,此“驱动器”是 C 驱动器,但在您的情况下可能会有所不同。
OneDrive 无法连接到 Windows
要修复访问文件时OneDrive无法连接到Windows错误,请按照下列步骤操作 -
- 验证Windows 云过滤器驱动程序(Windows Cloud Filter Driver)是否正在运行
- 验证是否已将Windows Cloud Filter Driver附加到驱动器
要了解有关这些步骤的更多信息,请继续阅读。
1]验证(Verify)Windows Cloud Filter Driver是否正在运行
要验证Windows Cloud Filter Driver是否在您的计算机上运行,您可以借助命令提示符(Command Prompt)。无论您是需要验证还是启用它,都有几个命令可以帮助您。要开始,请以管理员权限运行命令提示符(run Command Prompt with administrator privilege),然后键入以下命令 -
cd %systemroot%\system32\drivers
点击Enter按钮。之后,键入以下命令 -
sc query cldflt
按下Enter按钮后,您的命令提示符(Command Prompt)应显示如下结果 -
状态(STATE)应显示为4 RUNNING(4 RUNNING)。如果它显示其他任何内容,是时候在您的计算机上启用它了。为此,在命令提示符(Command Prompt)窗口中键入以下命令 -
sc config cldflt start=auto
按(Press)回车(Enter)键。如果没有发生任何错误,您应该会看到一条成功消息,显示[SC] ChangeServiceConfig SUCCESS。
现在,您应该重新启动计算机并检查是否可以访问该文件。如果没有,其他指南可能对您有所帮助。
2]验证(Verify)Windows Cloud Filter Driver是否附加到驱动器
如果 cldflt.sys 未链接到Windows(Windows)计算机上同步文件夹所在的驱动程序,您会发现此错误消息。它发生在更新或恶意软件攻击之后。因此,您需要验证此设置。最好的事情是您可以在命令提示符(Command Prompt)的帮助下完成这项工作。
首先,您需要按照本指南在Windows计算机上打开提升的命令提示符窗口。打开后,粘贴以下命令-
reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Notifications\Data" /v 41960B29A3BC0C75
并点击Enter按钮。你应该看到这样的结果-
REG_BINARY 0100000001000000
如果它显示其他任何内容,则需要执行此命令-
Fltmc attach cldflt c:
您应该记住,上述命令中的“c”是您 PC 上OneDrive文件夹所在的驱动器。
现在重新启动计算机并照常使用文件点播。(Files On-Demand)
相关阅读:(Related read: )修复 Windows 10 上的 OneDrive 同步问题和问题。(Fix OneDrive sync issues & problems on Windows 10.)
OneDrive cannot connect to Windows error when accessing files
If уou are using OneDrive’s Files On-Demand feature to access files without downloading them to your PC, you might come across an error saying OneDrive cannot connect to Windows while accessing files from OneDrive.
The File On-Demand functionality lets you access OneDrive files on your Windows computer without downloading first. That way, users can save some storage on their computers while running low. However, if the OneDrive is showing the above-mentioned error message, it might be very frustrating when you are in a hurry.
Why does this error occur
There are mainly two reasons why a user can find this issue on his/her computer. Whenever the OneDrive requires to display files as per the user’s demand, it is mandatory to have Windows Cloud Filter Driver or cldflt.sys running in the background. If it is not running as it should be, there is a chance of getting this error message. Secondly, even if the Windows Cloud Filter Driver is running, users can get this problem if it is not attached to the drive where the sync folder is placed. By default, this ‘drive’ is the C drive, but it can be different in your case.
OneDrive cannot connect to Windows
To fix OneDrive cannot connect to Windows error when accessing files, follow these steps-
- Verify if Windows Cloud Filter Driver is running or not
- Verify if Windows Cloud Filter Driver is attached to the drive
To know more about these steps, keep reading.
1] Verify if Windows Cloud Filter Driver is running or not
To verify whether the Windows Cloud Filter Driver is running on your computer or not, you can take the help of Command Prompt. A couple of commands can help you out, no matter whether you need to verify or enable it. To get started, run Command Prompt with administrator privilege, and type this command-
cd %systemroot%\system32\drivers
Hit the Enter button. After that, type the following command-
sc query cldflt
After pressing the Enter button, your Command Prompt should display a result like this-
The STATE should show as 4 RUNNING. If it is showing anything else, it is the time to enable it on your computer. For that, type the following command in the Command Prompt window-
sc config cldflt start=auto
Press the Enter button. If nothing wrong happens, you should see a success message saying [SC] ChangeServiceConfig SUCCESS.
Now, you should restart your computer and check if you can access the file or not. If not, the other guide might be helpful for you.
2] Verify if Windows Cloud Filter Driver is attached to the drive
If the cldflt.sys is not linked to the driver where the sync folder is located on your Windows computer, you can find this error message. It happens after an update or malware attack. Therefore, you need to verify this setting. The best thing is that you can do this job with the help of Command Prompt.
At first, you need to follow this guide to open an elevated Command Prompt window on your Windows computer. After opening it, paste the following command-
reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Notifications\Data" /v 41960B29A3BC0C75
and hit the Enter button. You should see a result like this-
REG_BINARY 0100000001000000
If it is showing anything else, you need to execute this command-
Fltmc attach cldflt c:
You should keep in mind that the “c” in the above command is the drive where the OneDrive folder is placed on your PC.
Now restart your computer and use the Files On-Demand as usual.
Related read: Fix OneDrive sync issues & problems on Windows 10.