Enable remote desktop with telnet utility (CMD)

Опубликовано: 29 Октябрь 2024
на канале: ozpc123
117,951
116

Tips & Donations!


BTC: 19mXrujWn24xYa35wYLvddcWPqebi32Jdv

ETH: 0x58b4a53dee2b88f2babba9ea4be005995d87a686


BATCH FILE

@echo off
:start
set input
echo ::::::::::::
echo ::::::::::::
echo ::::::
echo :::::: PRESS Y TO START !
echo ::::::
echo ::::::
echo :::::: PRESS E TO END and EXIT
@echo on
@echo off
echo ::::::
echo ::::::
echo ::::::
echo ::::::
set /p input=-------- Start Remote Desktop PRESS Y
if %input%==y goto y
if %input%==else goto other
if %input%==e goto e
:other
echo WTF? CHOSE Y OR E !!!!
pause
goto start

:y
@echo off
reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "AllowTSConnections" /t REG_DWORD /d 0x1 /f
@echo off
reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 0x0 /f
@echo off
sc config "Termservice" start= auto
net start "Termservice"
@echo off
netsh firewall
@echo off
netsh firewall add portopening TCP 3389 "Remote Desktop"
pause




------------------------------------------------------------------------------------








:: http://www.pc-malta.com/clips.html ::

reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "AllowTSConnections" /t REG_DWORD /d 0x1 /f

reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 0x0 /f



Connect to a remote pc using only telnet
and enable remote desktop from the command prompt.