By Vivian / Last Updated October 8, 2021

Need to open Remote Desktop Connection from CMD

It’s inevitable for the users who use Remote Desktop Connection frequently to use Commands with Command Prompt that also can be called CMD. And most of the users are satisfied with it on Windows because the feature makes it easy to access remote PC. In fact, the operation is relatively easy and simple. In this tutorial, I’ll show you how to open RDC from CMD and a more easy-operated way to start RDC.

2 ways to open Remote Desktop Connection from CMD

Solution 1. Launch Remote Desktop Connection from run CMD “mstsc”

The MSTSC command is used in the Windows command line to initiate a remote desktop session. You can use MSTSC to set up the connection in few seconds if you are on the same network or know the IP address of the remote computer, you need to know a few switches first.

Step 1. Press the Windows key+R to open Run box

run-dialoge-box

Step 2. Type “mstsc” and then click on OK

run-box-mstsc

Step 3. Add the computer name or IP address of the remote PC and log in

ip-address-rdp

Note: if you don’t know IP address of your PC, you can search in Google

Solution 2. Console Switch in Mstsc command

If you want to connect the same user session every time, you can use mstsc / ? Command to view all mstsc.exe command parameters.

Method 1. mstsc /console

You can use Command Prompt or search it on the Search box for that.

run-box-cmd

mstsc-console

Then you click "Enter" and you can connect successfully.

Method 2. Use mstsc/f (by using cmd)

You can open remote desktop session in full-screen mode

mstsc-f

 

Method 3. mstsc /v:computername

You can take remote with the computer name.

mstsc-v-computer

Bonus: How to enable Remote Desktop on the host computer

However, we may also encounter with Remote Desktop not working problem with an error message, like “Remote Desktop can't connect to the remote computer for one of these reasons…”. 

The problem may occur as the Remote Desktop hasn’t been enabled on the host computer. Thus, the users can start RDC by enabling RDP. And the methods to enable RDP are shown as follows:

cannot-connect-rdp

Method 1. Enable Remote Desktop from Settings

Step 1. Search “Remote Settings” in Search box.

remote-deskto-settings

Step 2. Toggle Enable Remote Desktop to on in the main window that appears.

enable-remote-desktop-on

Method 2. Enable Remote Desktop from Run window

Step 1. Press Windows key+ R to open Run box, type“sysdm.cpl” and press ENTER.

sysdm

Step 2. Select the Remote tab and make sure ‘Allow remote connections to this computer’ is checked.

allow-remote-connection

Step 4. Click “Apply” then OK.

Method 3. Enable RDP from Command Prompt

Step 1.Search “Command Prompt” in Search Box

Step 2. right-click the top result, and select the “Run as administratoroption”.

Step3. Type the following command to enable the remote desktop protocol and press Enter:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

command-enable

(Optional) Type the following command to enable remote desktop through the Windows Firewall and press Enter:

netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Note: Once you complete the steps, the protocol will be enabled, and you’ll be able to access thedeviceremotely.

You can choose one of the methods to fully enable Remote Desktop. Now you have closed a vulnerability with your computer. If you need someone to Remote Desktop into your computer, just follow the above process and enable everything.

Further reading: AnyVieweran easy-operated freeware

We have to admit that the solutions above for Remote Desktop connection and enabling RDP are a little bit complicated. At this time, it’s wise for us to choose the third-part software, like AnyViewer. It’s a totally free remote desktop software whether in personal or commercial usage. Besides, it’s easy to operate, which needn’t to run CMD. Here are some tips about using it.

Step 1. Download and install AnyViewer on your PC and the remote PC

Download Freeware Win 11/10/8.1/8/7/XP
Secure Download

Step 2. Open and run AnyViewer, Accepted Control and Request Control are illustrated on your page.

temporary-code

 

Step 3. Input the device ID of the remote PC, send a control request to the remote computer and you can control the remote PC if you are allowed. (choice 1)

send-a control-request-to-your-partner

request-to-control-your-device

You can also set a security code in the settings for safety, and then input the security code you set before and click “connect”.(choice 2)

accept-remote-control

security-code

Conclusion

After careful reading, I guess you must have a thorough understanding of opening RDC from running CMD. In addition, we also know some ways to enable RDP by running CMD. It seems pretty for the professional persons or someone who is familiar with the computer. But for those who still have some problems to control remote PC, we advise you to resort to the third-part software, such as AnyViewer, which is absolutely effective and easy.