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