修改注册表信息以允许身份验证
- 因为windows默认只支持https ,我是以http访问nexcloud的,所以需要修改注册表。按下
win + R
启动regedit
并导航至HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
.
- 创建或编辑BasicAuthLevel(Windows Vista、7 和 8)或UseBasicAuth(Windows XP 和 Windows Server 2003)DWORD值,并将其值数据设置1为 SSL 连接。值为0表示基本身份验证已禁用,值为则2允许 SSL 和非 SSL 连接。
将BasicAuthLevel值改为2: 1 支持https访问;2 支持http和https访问
.
- 重启计算机/或者重启WebClient服务。
以管理员身份运行
powershell
并运行以下net stop webclient net start webclient
映射网络驱动器
在您的 MS Windows 计算机上打开 Windows 资源管理器。
右键单击计算机条目,然后从下拉菜单中选择映射网络驱动器...。
选择您想要映射 Nextcloud 的本地网络驱动器。
指定您的 Nextcloud 实例的地址,后跟 /remote.php/dav/files/USERNAME/
- 输入账号密码登录后就能完成映射了。