|
本帖最后由 freesoft00 于 2024-6-9 23:14 编辑
测试可以了- ::关闭防火墙
- netsh advfirewall set allprofiles state OFF
- ::开启guest用户
- net user guest /active:yes>nul 2>nul
- net user guest "">nul 2>nul
- ::启用来宾登录
- reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /f /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1
- reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /f /v "RequireSecuritySignature" /t REG_DWORD /d 0
- ::允许空密码用户登录
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "LimitBlankPasswordUse" /t REG_DWORD /d 1
- echo [Version]>nl.inf
- echo signature="$CHICAGO$">>nl.inf
- echo Revision=1>>nl.inf
- echo [Privilege Rights]>>nl.inf
- echo SeDenyNetworkLogonRight = >>nl.inf
- secedit /configure /db nl.sdb /cfg nl.inf
- gpupdate /force
- del nl.inf /q
- del nl.sdb /q
- del nl.jfm /q
- pause
复制代码
|
|