w10install/tools/setup-thinclient.cmd
Michael H.G. Schmidt c7cca6418a .
2024-01-30 17:20:24 +01:00

31 lines
867 B
Batchfile

@echo off
set TOOLS=c:\tools
set THINUSER=THINCLIENT
set THINPASS=a024b1b5f6
echo ####### %0 #######
echo Changing shell to THINCLIENT.EXE ...
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v Shell /t REG_SZ /d "%TOOLS%\thinclient.exe" /f 2>/nul
echo Creating user %THINUSER% ...
net user %THINUSER% %THINPASS% /ADD
echo Activating Auto Logon for user %THINUSER% ...
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v AutoAdminLogon /t REG_SZ /d "1" /f 2>/nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v DefaultUsername /t REG_SZ /d "%THINUSER%" /f 2>/nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v DefaultPassword /t REG_SZ /d "%THINPASS%" /f 2>/nul
echo.
echo Please REBOOT NOW.
echo.
echo ####### %0 #######