Skip to content

Commit 9d3809f

Browse files
committed
[BOOTDATA] Disable logoff/password-change/workstation-lock in the LiveCD (reactos#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
1 parent 1499e7e commit 9d3809f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

boot/bootdata/livecd.inf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32",,0x00000012
4141
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU",,0x00000012
4242
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU",,0x00000012
4343

44+
; Policies overrides
45+
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DisableLockWorkstation",0x00010001,1
46+
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","DisableLockWorkstation",0x00010001,1
47+
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","DisableChangePassword",0x00010001,1
48+
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoDisconnect",0x00010001,1
49+
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoLogoff",0x00010001,1
50+
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer","StartMenuLogoff",0x00010001,1
51+
4452
; User Profile environment variables
4553
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","USERPROFILE",0x00020000,"%SystemDrive%\Profiles\Default User"
4654
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","ALLUSERSPROFILE",0x00020000,"%SystemDrive%\Profiles\All Users"

0 commit comments

Comments
 (0)