陈小洋的博客 - 匿名共享
type: channel
link: http://yang1010.vicp.net/index.php/tag/%E5%8C%BF%E5%90%8D%E5%85%B1%E4%BA%AB/
items: 解决WIN10 LTSC无法访问匿名共享盘

解决WIN10 LTSC无法访问匿名共享盘
type: item
date: 2025-03-04T08:54:00+00:00
description: 解决无法访问匿名共享文件，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