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 !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s