From 9d3809febd3c88929c7bab0c4adb6ff572520e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 1 Sep 2025 20:30:26 +0200 Subject: [PATCH] [BOOTDATA] Disable logoff/password-change/workstation-lock in the LiveCD (#8373) - Disable "Log Off" from the Start Menu and the C-A-D Security dialog; - Disable the "Lock Workstation" and "Change Password" buttons in the Security dialog. These are only "UI"-usability features to prevent the user from logging off when running the LiveCD. (Logging off from the SYSTEM account, and changing its password, don't make much sense.) CORE-11397 --- boot/bootdata/livecd.inf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot/bootdata/livecd.inf b/boot/bootdata/livecd.inf index 9c8abdf2d1e..18033c628b3 100644 --- a/boot/bootdata/livecd.inf +++ b/boot/bootdata/livecd.inf @@ -41,6 +41,14 @@ HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32",,0x00000012 HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU",,0x00000012 HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU",,0x00000012 +; Policies overrides +HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DisableLockWorkstation",0x00010001,1 +HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","DisableLockWorkstation",0x00010001,1 +HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","DisableChangePassword",0x00010001,1 +HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoDisconnect",0x00010001,1 +HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoLogoff",0x00010001,1 +HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer","StartMenuLogoff",0x00010001,1 + ; User Profile environment variables HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","USERPROFILE",0x00020000,"%SystemDrive%\Profiles\Default User" HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","ALLUSERSPROFILE",0x00020000,"%SystemDrive%\Profiles\All Users"