Home > OS >  Unable to connect to a remote desktop, various commands are tried.
Unable to connect to a remote desktop, various commands are tried.

Time:11-04

Recent friend gave a demand, Windows server only command line open the remote desktop service,
I not do before operations, not this aspect knowledge, but think nothing is difficult,
The search on the net a few commands, but could not even tried after all,
Below is I used the command:
Reg the QUERY "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server"/v fDenyTSConnections

Reg the DELETE "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server" fDenyTSConnections/v/f

Reg the ADD "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server" REG_DWORD fDenyTSConnections/t/d/v 0

Netsh interface portproxy add v4tov4 listenaddress=network IP listenport=8445 connectaddress=IP networks outside connectport=3390

Netsh firewall set service type=remoteadmin mode=enable
Netsh firewall set service type=remotedesktop mode=enable
All of the above command execution is successful, the other firewall exceptions in the model, the TCP port 3390,
But I still can't open Telnet connection, TermService listening is port 8445, running tomcat can get the outside network access web site,
Also please give some ideas, I really can't figure out why even not,
Is not changed after the registry must restart?

CodePudding user response:

Change the registry should restart the system,
  • Related