bugfixing

This commit is contained in:
Michael H.G. Schmidt 2024-01-31 14:14:46 +01:00
parent be50faa1f5
commit 138b1b1ef6
3 changed files with 39 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set TOOLS=c:\tools
echo ####### %0 #######
echo Activating Auto Logon for a user ...
powershell -command %TOOLS%\autologon.ps1
powershell -command %TOOLS%\setup-autologon.ps1
echo ####### %0 #######

View File

@ -0,0 +1,38 @@
@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 opions ...
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 #######