By Ellie / Last Updated June 15, 2022

Need to open Remote Desktop Connection from CMD

Opening Remote Desktop connection from CMD is being more and more popular. And most of the users are satisfied with it because the feature makes it easy to access remote PC. In this tutorial, I’ll show you how to open Remote Desktop in Windows 11, 10, 8, 7 from the run. 

RDC Slow

3 ways to open Remote Desktop Connection from CMD

Here in this part, 3 ways are illustrated for you to open Remote Desktop Connection from CMD. Follow me to operate. 

Before the operation: You can also establish the remote connection by pressing Win + R and running the MSTSC command to open Remote Desktop Connection.  To run CMD for Remote Desktop Connection, here are 3 specific ways.

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. Use mstsc /console

Step 1. Press Win + R and then input cmd. Click on OK.

run-box-cmd

Step 2. Then input mstsc /console and then press the "Enter" key. After that, input the IP address, and click on Connect. Finally, type in the credentials of the remote PC and then you can connect successfully.

mstsc-console

Method 2. Use mstsc/f 

Step 1. Press Win + R and then input cmd. Click on OK.

Step 2. Input mstsc/f and then press the Enter key. After that, input the IP address, and click on Connect. Finally, type in the credentials of the remote PC and then you can connect successfully.

mstsc-f

Method 3. mstsc /v:computername

Step 1. Press Win + R and then input cmd. Click on OK.

Step 2. Input mstsc /v:computername and then press the Enter key. (Replace the computer name of the real user name of the remote PC.)

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 the 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 key.

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 administrator option”.

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: AnyViewer— an 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 and does needn’t run CMD. Here are some tips about using it.

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

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

Step 1. Launch AnyViewer on both computers. Go to Log in, and then click Sign up. (If you already have signed up on its official website, you can log in directly.)

Log in AnyViewer

Step 2. Fill in the signup information.

Sign Up for AnyViewer

Step 3. Then you can see you successfully logged in to AnyViewer. Your device will automatically be assigned to the account you've logged in to.

Free Editions

Step 4. Log in to the same AnyViewer account on the two devices, then you can achieve a direct connection by clicking Remote control.

Connect to My Devices

Note: You can also upgrade your account to Professional or Enterprise edition to assign more devices and to connect to another computer in privacy mode.

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 controlling remote PC, we advise you to resort to third-party software, such as AnyViewer, which is absolutely effective and easy.