w10install/tools/setup-servermode.cmd

50 lines
1.8 KiB
Batchfile
Raw Permalink Normal View History

2024-01-31 14:14:46 +01:00
@echo off
set TOOLS=c:\tools
echo ####### %0 #######
2024-12-21 23:55:45 +01:00
echo Activating Desktopinfo for servers ...
copy /Y %TOOLS%\scripts\config\desktopinfo_server.ini %TOOLS%\desktopinfo\desktopinfo.ini
2024-01-31 14:14:46 +01:00
echo Disabling Lockscreen function ...
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
2024-12-21 23:26:48 +01:00
/v DisableLockWorkstation /t REG_DWORD /d "1" /f 2>nul
2024-01-31 14:14:46 +01:00
echo Disabling fast User switching ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
2024-12-21 23:26:48 +01:00
/v HideFastUserSwitching /t REG_DWORD /d "1" /f 2>nul
2024-01-31 14:14:46 +01:00
echo Disabling Startmenu power button ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^
2024-12-21 23:26:48 +01:00
/v StartMenuLogoff /t REG_DWORD /d "0" /f 2>nul
echo Disabling Startmenu sleep button ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" ^
/v "ShowSleepOption" /t REG_DWORD /d "0" /f 2>nul
2024-01-31 14:14:46 +01:00
2024-12-21 23:31:20 +01:00
echo Disabling Startmenu lock button ...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" ^
/v "ShowLockOption" /t REG_DWORD /d "0" /f 2>nul
2024-12-09 22:24:45 +01:00
echo Disabling Power options ...
2024-01-31 14:14:46 +01:00
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
2024-12-21 23:26:48 +01:00
/v shutdownwithoutlogon /t REG_DWORD /d "0" /f 2>nul
2024-01-31 14:14:46 +01:00
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 #######