diff --git a/tools/logonalt.cmd b/tools/logonalt.cmd new file mode 100644 index 0000000..30f897f --- /dev/null +++ b/tools/logonalt.cmd @@ -0,0 +1,6 @@ +@echo off + +:RDPLOOP +start /WAIT mstsc.exe +goto :RDPLOOP + diff --git a/tools/logonalt.vbs b/tools/logonalt.vbs new file mode 100644 index 0000000..8b5d28d --- /dev/null +++ b/tools/logonalt.vbs @@ -0,0 +1,3 @@ +Set LogonScript = CreateObject("WScript.Shell") +LogonScript.Run "%SystemDrive%\tools\logonalt.cmd", 0, False + diff --git a/tools/setup-rdpclientmode.cmd b/tools/setup-rdpclientmode.cmd new file mode 100644 index 0000000..7abc23b --- /dev/null +++ b/tools/setup-rdpclientmode.cmd @@ -0,0 +1,28 @@ +@echo off +set TOOLS=c:\tools +set RDPUSER=rdpclient +set RDPPASS=bf7d19ea8 + +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 + +echo "Please REBOOT" + +echo ####### %0 ####### +