telnet

Howto: Enable remote desktop from CMD

Posted on Updated on

Starting remote desktop on a remote pc when you only have a telnet access to it.
once you have a telnet session to a remote pc you may want to also use remote desktop .

It’s disable and needs to be enable can’t connect !!

First of all you will need to enable it if its not
running on the remote pc.

from the command prompt use these commands.

reg add “hklm\system\currentControlSet\Control\TĀ­erminal Server” /v “AllowTSConnections” /t REG_DWORD /d 0x1 /f

or

reg add “hklm\system\currentControlSet\Control\TĀ­erminal Server” /v “fDenyTSConnections” /t REG_DWORD /d 0x0 /f

The next step is to enable the service if it is disable it is the terminal service – services

goto the command line and type in

sc config TermService start= auto

this will enable it .

next you need to start if to start it type this into the command prompt

net start Termservice

Enable Remote Desktop Service

Now your almost done!

We will need to open a port in the firewall

open Ports in Firewall for — remote Desktop

Here are the commands.

netsh.exe

firewall

add portopening TCP 3389 “Remote Desktop”

ok now il try and connect again !

Enable/Disable firewall through command line

Posted on Updated on

This command is very useful when we are working with windows netwok

Open command prompt

This command gets into the firewall section.

Type in:
netsh firewall set opmode enable “To enable firewall”

netsh firewall set opmode disable “To disable firewall”