w10install/tools/setup-servermode.cmd
Michael H.G. Schmidt 51de7a5b43 typo
2024-12-09 22:24:45 +01:00

39 lines
1.4 KiB
Batchfile

@echo off
set TOOLS=c:\tools
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
echo Disabling fast User switching ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
/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
echo Disabling Power options ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
/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
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideRestart" ^
/v "value" /t REG_DWORD /d 1 /f 2>nul
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideHibernate" ^
/v "value" /t REG_DWORD /d 1 /f 2>nul
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideSleep" ^
/v "value" /t REG_DWORD /d 1 /f 2>nul
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HidePowerButton" ^
/v "value" /t REG_DWORD /d 1 /f 2>nul
echo ####### %0 #######