From 4a8f55ec58cb6a683aa12fdd1db863fe243dc237 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 17 Jan 2024 22:51:29 +0100 Subject: [PATCH] fix: Allow RDP login with blank passwords (#47) --- assets/win10x64.xml | 14 ++++++++++++-- assets/win11x64.xml | 14 ++++++++++++-- assets/win2016-eval.xml | 32 +++++++++++++++++++------------- assets/win2019-eval.xml | 32 +++++++++++++++++++------------- assets/win2022-eval.xml | 8 +++++++- assets/win81x64.xml | 6 ++++++ 6 files changed, 75 insertions(+), 31 deletions(-) diff --git a/assets/win10x64.xml b/assets/win10x64.xml index 4485f30..ba395f8 100644 --- a/assets/win10x64.xml +++ b/assets/win10x64.xml @@ -1,6 +1,5 @@ - @@ -126,6 +125,11 @@ + + + false + + @@ -265,15 +269,21 @@ 1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f + Set AutoLogonCount to 0 2 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f + Allow RDP login with blank password + + + 3 false cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 3 + 4 msiexec /i E:\virtio-win-gt-x64.msi /qb! Install VirtIO drivers diff --git a/assets/win11x64.xml b/assets/win11x64.xml index 92e8b46..241b12d 100644 --- a/assets/win11x64.xml +++ b/assets/win11x64.xml @@ -1,6 +1,5 @@ - @@ -126,6 +125,11 @@ + + + false + + @@ -265,15 +269,21 @@ 1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f + Set AutoLogonCount to 0 2 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f + Allow RDP login with blank password + + + 3 false cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 3 + 4 msiexec /i E:\virtio-win-gt-x64.msi /qb! Install VirtIO drivers diff --git a/assets/win2016-eval.xml b/assets/win2016-eval.xml index b0756d7..0a9c193 100644 --- a/assets/win2016-eval.xml +++ b/assets/win2016-eval.xml @@ -101,34 +101,34 @@ - D:\viostor\2k16\amd64 + D:\viostor\2k16\amd64 - D:\NetKVM\2k16\amd64 + D:\NetKVM\2k16\amd64 - D:\Balloon\2k16\amd64 + D:\Balloon\2k16\amd64 - D:\pvpanic\2k16\amd64 + D:\pvpanic\2k16\amd64 - D:\qemupciserial\2k16\amd64 + D:\qemupciserial\2k16\amd64 - D:\qxldod\2k16\amd64 + D:\qxldod\2k16\amd64 - D:\vioinput\2k16\amd64 + D:\vioinput\2k16\amd64 - D:\viorng\2k16\amd64 + D:\viorng\2k16\amd64 - D:\vioscsi\2k16\amd64 + D:\vioscsi\2k16\amd64 - D:\vioserial\2k16\amd64 + D:\vioserial\2k16\amd64 @@ -162,7 +162,7 @@ true - + false @@ -177,7 +177,7 @@ all - + @@ -221,15 +221,21 @@ 1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f + Set AutoLogonCount to 0 2 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f + Allow RDP login with blank password + + + 3 false cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 3 + 4 msiexec /i E:\virtio-win-gt-x64.msi /qb! Install VirtIO drivers diff --git a/assets/win2019-eval.xml b/assets/win2019-eval.xml index f3025bd..c9e4874 100644 --- a/assets/win2019-eval.xml +++ b/assets/win2019-eval.xml @@ -101,34 +101,34 @@ - D:\viostor\2k19\amd64 + D:\viostor\2k19\amd64 - D:\NetKVM\2k19\amd64 + D:\NetKVM\2k19\amd64 - D:\Balloon\2k19\amd64 + D:\Balloon\2k19\amd64 - D:\pvpanic\2k19\amd64 + D:\pvpanic\2k19\amd64 - D:\qemupciserial\2k19\amd64 + D:\qemupciserial\2k19\amd64 - D:\qxldod\2k19\amd64 + D:\qxldod\2k19\amd64 - D:\vioinput\2k19\amd64 + D:\vioinput\2k19\amd64 - D:\viorng\2k19\amd64 + D:\viorng\2k19\amd64 - D:\vioscsi\2k19\amd64 + D:\vioscsi\2k19\amd64 - D:\vioserial\2k19\amd64 + D:\vioserial\2k19\amd64 @@ -162,7 +162,7 @@ true - + false @@ -177,7 +177,7 @@ all - + @@ -221,15 +221,21 @@ 1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f + Set AutoLogonCount to 0 2 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f + Allow RDP login with blank password + + + 3 false cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 3 + 4 msiexec /i E:\virtio-win-gt-x64.msi /qb! Install VirtIO drivers diff --git a/assets/win2022-eval.xml b/assets/win2022-eval.xml index 4ded85c..7a68da3 100644 --- a/assets/win2022-eval.xml +++ b/assets/win2022-eval.xml @@ -221,15 +221,21 @@ 1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f + Set AutoLogonCount to 0 2 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f + Allow RDP login with blank password + + + 3 false cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 3 + 4 msiexec /i E:\virtio-win-gt-x64.msi /qb! Install VirtIO drivers diff --git a/assets/win81x64.xml b/assets/win81x64.xml index e0f8857..db364f2 100644 --- a/assets/win81x64.xml +++ b/assets/win81x64.xml @@ -194,9 +194,15 @@ 1 reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f + Set AutoLogonCount to 0 2 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f + Allow RDP login with blank password + + + 3 msiexec /i E:\virtio-win-gt-x64.msi /qb! Install VirtIO drivers