解决无法访问匿名共享文件，CMD代码如下：@echo off Color A Title 解决WIN10无法访问匿名共享盘 >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B :gotAdmin if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) pushd "%CD%" CD /D "%~dp0" rem 启用不安全的来宾登录-解决网盘无法访问 rem 将Everyone权限应用于匿名用户 echo -------------------------------------------------------------------------- echo 启用不安全的来宾登录-解决网盘无法访问 reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t "REG_DWORD" /d "1" /f echo -------------------------------------------------------------------------- echo 将Everyone权限应用于匿名用户 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "EveryoneIncludesAnonymous" /t "REG_DWORD" /d "1" /f echo -------------------------------------------------------------------------- echo 重新启动计算机，完成设置应用！ echo -------------------------------------------------------------------------- @pause 下载地址：解决WIN10无法访问匿名共享盘.zip