1
0
kopia lustrzana https://github.com/dockur/windows.git synced 2026-06-10 11:59:33 +08:00

fix: Disallow RDP login with blank password (#1202)

This commit is contained in:
Kroese
2025-04-14 12:46:21 +02:00
zatwierdzone przez GitHub
rodzic fda0d7fbf9
commit a1e68622e9
40 zmienionych plików z 0 dodań i 198 usunięć
-5
Wyświetl plik
@@ -150,11 +150,6 @@
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f</CommandLine>
<Description>Allow guest access to network shares</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f</CommandLine>
<Description>Allow RDP login with blank password</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<CommandLine>cmd /C wmic useraccount where name="Docker" set PasswordExpires=false</CommandLine>