From cf9ae184e3335154cd59199c1569963d048f3076 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sat, 21 Dec 2024 23:31:20 +0100 Subject: [PATCH] removed lock button in server script --- tools/setup-servermode.cmd | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/setup-servermode.cmd b/tools/setup-servermode.cmd index 8d233c3..a9d5170 100644 --- a/tools/setup-servermode.cmd +++ b/tools/setup-servermode.cmd @@ -16,15 +16,13 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^ /v StartMenuLogoff /t REG_DWORD /d "0" /f 2>nul echo Disabling Startmenu sleep button ... -reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" ^ - /v "HideSleep" /t REG_DWORD /d 1 /f 2>nul - -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" ^ - /v "ShowSleepOption" /t REG_DWORD /d "0" /f 2>nul - reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" ^ /v "ShowSleepOption" /t REG_DWORD /d "0" /f 2>nul +echo Disabling Startmenu lock button ... +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" ^ +/v "ShowLockOption" /t REG_DWORD /d "0" /f 2>nul + echo Disabling Power options ... reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^ /v shutdownwithoutlogon /t REG_DWORD /d "0" /f 2>nul