Joysky

Joysky

For memory!

Set up Windows to mount Alist's WebDAV

1. Introduction#

Most cloud storage services available on the market can be mounted in "Alist". Alist also supports the webdav protocol. This means that through Alist's webdav service, we can directly mount the cloud storage to the local system, allowing us to read and write files in the cloud storage just like a local disk.

However, during the local mounting process, whether adding a network location or mapping a network drive, errors such as incorrect file paths or network errors preventing access may occur, as shown below:
image
image

This article will briefly introduce how to mount local webdav in a Windows environment.

2. Cause of the Problem#

The reason for the above issues is actually very simple. The default WebClient service in Windows only supports the https protocol, while the locally set up webdav service and links are based on the http protocol, which leads to the failure of the mounting process.

For some advanced users, converting the webdav service to the https protocol is undoubtedly a safer and better choice. However, for those who only need to access it within a local network and have lower security requirements, the cost of upgrading to https may be too high. Therefore, enabling the built-in WebClient in Windows to support http may be a quicker and more convenient option.

Step 1:#

Press the “Windows logo key” + “R” to open the Run window, type regedit, and click OK to open the Registry Editor window.

Step 2:#

Navigate to the following path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters. Double-click the BasicAuthLevel entry in the right pane, change the value data to “2”, click OK, and close the Registry Editor.
image

Or import the registry file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters]
"BasicAuthLevel"=dword:00000002

Step 3:#

Press the “Windows logo key” + “R” to open the Run window, type services.msc, and click OK to open the “Services” interface. Find the “WebClient” service, right-click to open the options menu, and select Restart. Wait a few seconds for it to complete, then close the “Services” interface.
image

After completing the above three steps, the WebClient service is now allowed to use the http protocol for mounting.

4. Mounting Test#

1. Map Network Drive#

image
image

2. Add Network Location#

image
image

As we can see, after modifying the registry, both mapping the network drive and adding the network location can correctly access the webdav service.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.