|
要能访问共享,,我记得至少要开通这几个服务吧
LanmanWorkstation
LanmanServer
lmhosts
我脚本上是这么优化的
REM 启用 Lanman Workstation
:: %WinDir%\AtlasModules\NSudo.exe -U:T -P:E -UseCurrentConsole -Wait %WinDir%\AtlasModules\atlas-config.bat /workE
reg add "HKLM\System\CurrentControlSet\Services\rdbss" /f /v "Start" /t REG_DWORD /d "3" 1>nul 2>nul
reg add "HKLM\System\CurrentControlSet\Services\KSecPkg" /f /v "Start" /t REG_DWORD /d "0" 1>nul 2>nul
reg add "HKLM\System\CurrentControlSet\Services\mrxsmb20" /f /v "Start" /t REG_DWORD /d "3" 1>nul 2>nul
reg add "HKLM\System\CurrentControlSet\Services\mrxsmb" /f /v "Start" /t REG_DWORD /d "3" 1>nul 2>nul
reg add "HKLM\System\CurrentControlSet\Services\srv2" /f /v "Start" /t REG_DWORD /d "3" 1>nul 2>nul
reg add "HKLM\System\CurrentControlSet\Services\LanmanWorkstation" /f /v "Start" /t REG_DWORD /d "2" 1>nul 2>nul
dism /Online /Enable-Feature /FeatureName:SmbDirect /norestart 1>nul 2>nul
REM 服务设置
sc config lmhosts start= demand 1>nul 2>nul
sc config LanmanServer start= delayed-auto 1>nul 2>nul |
|