Run command for remote desktop (RDP client)

by admin on August 16, 2009

The Run command for Windows Remote desktop application is Mstsc.

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

This command mstsc can be used from command line too.

If you are connecting to a Windows XP machine then it allows only one active user at a time. We can open multiple connections to a Windows Server 2003/ 2008 machine. Every time we connect to the server it opens a new user session. To avoid this we can open a connection to the console. This allows us to login back to the same user session if we already have one. To do this we need to add /console switch to the mstsc command.

mstsc /console

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

Run command for opening remote desktop session in full screen mode
We need to 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.

Relevant Posts:
How to enable Remote desktop from command line

{ 6 comments… read them below or add one }

Anonymous May 10, 2011 at 6:17 pm

Good information on the command line switches available with the mstsc command. thank you.

Reply

arasu March 2, 2014 at 10:32 am

i would like to write command script to check whether the servers could RDP or not.
we have around 30 servers hence cant run mstsc /v:servername for each. Hence just would like to write cmd script to check all the servers. Could you please help me ?

Reply

Sandile May 19, 2014 at 8:40 am

can you please assist me with the system to enable remote access desktop/working into the network user without being there physically,i have i.p address and computer name of the workstation and we are all in one network.

Reply

Alok October 8, 2014 at 11:43 am

can user able to see the desktop in mstsc command

Reply

Jeffrey October 22, 2014 at 4:24 pm

It is not mstsc/console anymore. Now it is mstsc/admin. You can also add it to a desktop shortcut by changing the Target to %windir%\system32\mstsc.exe -admin

Reply

Jeffrey October 22, 2014 at 4:27 pm

“admin” is different than “console” actually. Admin allows you to boot another user. My bad.

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: