w10install/tools/setup-rdpclientmode.cmd

31 lines
877 B
Batchfile
Raw Normal View History

2024-01-30 00:02:55 +01:00
@echo off
set TOOLS=c:\tools
2024-01-30 00:27:33 +01:00
set RDPUSER=RDP
set RDPPASS=a024b1b5f67a4866af17e5fdd1168b7d
2024-01-30 00:02:55 +01:00
echo ####### %0 #######
echo Changing shell to MSTSC.EXE ...
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v Shell /t REG_SZ /d "cmd.exe /C %TOOLS%\logonalt.vbs" /f 2>/nul
echo Creating user %RDPUSER% ...
net user %RDPUSER% %RDPPASS% /ADD
echo Activating Auto Logon for user %RDPUSER% ...
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 "%RDPUSER%" /f 2>/nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v DefaultPassword /t REG_SZ /d "%RDPPASS%" /f 2>/nul
2024-01-30 00:05:07 +01:00
echo.
echo Please REBOOT NOW
echo.
2024-01-30 00:02:55 +01:00
echo ####### %0 #######