From d937ed2400a694e24061c1164de05876ed230f8d Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 8 Feb 2024 18:24:04 +0100 Subject: [PATCH] feat: Enable option for passwordless sign-in (#162) --- assets/win10x64-ltsc.xml | 21 +++++++++++++-------- assets/win10x64.xml | 21 +++++++++++++-------- assets/win11x64.xml | 35 ++++++++++++++++++++--------------- assets/win2012r2-eval.xml | 21 +++++++++++++-------- assets/win2016-eval.xml | 21 +++++++++++++-------- assets/win2019-eval.xml | 21 +++++++++++++-------- assets/win2022-eval.xml | 21 +++++++++++++-------- assets/win81x64.xml | 21 +++++++++++++-------- 8 files changed, 111 insertions(+), 71 deletions(-) diff --git a/assets/win10x64-ltsc.xml b/assets/win10x64-ltsc.xml index 036f0d7..f9d0f11 100644 --- a/assets/win10x64-ltsc.xml +++ b/assets/win10x64-ltsc.xml @@ -350,46 +350,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode diff --git a/assets/win10x64.xml b/assets/win10x64.xml index 9c3cef8..a332efd 100644 --- a/assets/win10x64.xml +++ b/assets/win10x64.xml @@ -346,46 +346,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode diff --git a/assets/win11x64.xml b/assets/win11x64.xml index 7e2bf4d..3fa19df 100644 --- a/assets/win11x64.xml +++ b/assets/win11x64.xml @@ -364,59 +364,64 @@ 3 - reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f - Disable unsupported hardware notifications + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in 4 - reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f - Disable unsupported hardware notifications - - - 5 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 6 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 7 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 8 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 9 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 10 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 11 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 12 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 13 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode + + 13 + reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f + Disable unsupported hardware notifications + + + 14 + reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f + Disable unsupported hardware notifications + diff --git a/assets/win2012r2-eval.xml b/assets/win2012r2-eval.xml index 0583fa1..7b22e00 100644 --- a/assets/win2012r2-eval.xml +++ b/assets/win2012r2-eval.xml @@ -273,46 +273,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode diff --git a/assets/win2016-eval.xml b/assets/win2016-eval.xml index 7dca306..e2200a0 100644 --- a/assets/win2016-eval.xml +++ b/assets/win2016-eval.xml @@ -273,46 +273,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode diff --git a/assets/win2019-eval.xml b/assets/win2019-eval.xml index 3e849f7..b01d491 100644 --- a/assets/win2019-eval.xml +++ b/assets/win2019-eval.xml @@ -277,46 +277,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode diff --git a/assets/win2022-eval.xml b/assets/win2022-eval.xml index 5a2488d..3bfc483 100644 --- a/assets/win2022-eval.xml +++ b/assets/win2022-eval.xml @@ -277,46 +277,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode diff --git a/assets/win81x64.xml b/assets/win81x64.xml index 7f39db4..f201a16 100644 --- a/assets/win81x64.xml +++ b/assets/win81x64.xml @@ -267,46 +267,51 @@ 3 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f + Enable option for passwordless sign-in + + + 4 cmd /C wmic useraccount where name="Docker" set PasswordExpires=false Password Never Expires - 4 + 5 cmd /C POWERCFG -H OFF Disable Hibernation - 5 + 6 cmd /C POWERCFG -X -monitor-timeout-ac 0 Disable monitor blanking - 6 + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 + 8 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup - 8 + 9 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f Disable first-run experience in Edge - 9 + 10 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f Show file extensions in Explorer - 10 + 11 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f Zero Hibernation File - 11 + 12 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f Disable Hibernation Mode