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
Step 2. Type “mstsc” and then click on OK
Step 3. Add the computer name or IP address of the remote PC and log in
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.
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
Method 3. mstsc /v:computername
You can take remote with the computer name.
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:
Method 1. Enable Remote Desktop from Settings
Step 1. Search “Remote Settings” in Search box.
Step 2. Toggle Enable Remote Desktop to on in the main window that appears.
Method 2. Enable Remote Desktop from Run window
Step 1. Press Windows key+ R to open Run box, type“sysdm.cpl” and press ENTER.
Step 2. Select the Remote tab and make sure ‘Allow remote connections to this computer’ is checked.
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
(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, which needn’t to run CMD. Here are some tips about using it.
Download and install AnyViewer on your PC and the remote PC.
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.)
Step 2. Fill in the signup information.
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.
Step 4. Log in to the same AnyViewer account on the two devices, then you can achieve a direct connection by clicking Remote control.
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 the third-party software, such as AnyViewer, which is absolutely effective and easy.