Using the Remote Desktop Client from the Command Prompt

Command to Take Remote Desktop

Desktop / December 2, 2014

Learn how to open Remote desktop from Run window. Remote desktop(RDP) client is used to connect to a remote Windows machine that is running RDP server.
Run the command mstsc to open remote desktop

Just open Run from start menu and type mstsc in the text box next to open and press enter.

This command mstsc can be executed from command line too.

If you are connecting to a box running client versions of Windows (like Windows 7, Windows 10) then it allows only one active user at a time. We can open multiple connections to a Windows Server 2003/ 2008 /2010 machine. Every time we connect to the server it opens a new user session. To connect to the same user session, use the command mstsc /console. This allows us to login back to the same user session if we already have one.

mstsc /console

This command can be run from command prompt or from window.

Run command for opening remote desktop session in full screen mode

Add /f switch to mstsc command.

mstsc /f

Run command for specifying the remote computer name from the command itself

we need to use /v switch in this case.

mstsc /v:computername

Run command to specify remote desktop connection settings using a rdp file

mstsc RDP_filename

A RDP file can be created using the ‘Save As‘ button in the General tab in mstsc(Remote desktop connection client) window.

These commands work on XP, Vista, Windows 7 and Server 2003/2008 operating systems.

Run command for Remote desktop manager

There is no Run command for opening remote desktop connection manager directly. It is usually installed in the path C:\Program Files\Remote Desktop Connection Manager\RDCman.exe. By specifying this complete path we can launch connection manager.

Source: www.windows-commandline.com