removed sleep button in server script!

This commit is contained in:
Michael H.G. Schmidt 2024-12-21 23:26:48 +01:00
parent 47c4aa9536
commit 2746b880a3
2 changed files with 15 additions and 5 deletions

View File

@ -3,7 +3,7 @@ call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
set EXE=..\software\totalcommander-setup.exe
set KEY=..\software\wincmd.key
set KEY=..\custom\wincmd.key
set TARGET=c:\totalcmd
set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs
set STARTMENU_USER=%APPDATA%\Microsoft\Windows\Start Menu\Programs

View File

@ -5,19 +5,29 @@ echo ####### %0 #######
echo Disabling Lockscreen function ...
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v DisableLockWorkstation /t REG_DWORD /d "1" /f 2>/nul
/v DisableLockWorkstation /t REG_DWORD /d "1" /f 2>nul
echo Disabling fast User switching ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
/v HideFastUserSwitching /t REG_DWORD /d "1" /f 2>/nul
/v HideFastUserSwitching /t REG_DWORD /d "1" /f 2>nul
echo Disabling Startmenu power button ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^
/v StartMenuLogoff /t REG_DWORD /d "0" /f 2>/nul
/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 Power options ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
/v shutdownwithoutlogon /t REG_DWORD /d "0" /f 2>/nul
/v shutdownwithoutlogon /t REG_DWORD /d "0" /f 2>nul
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideShutDown" ^
/v "value" /t REG_DWORD /d 1 /f 2>nul