≡ Menu

Run command for remote desktop (RDP client)

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

{ 7 comments… add one }
  • Anonymous May 10, 2011, 6:17 pm

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

  • arasu March 2, 2014, 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 ?

  • Sandile May 19, 2014, 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.

  • Alok October 8, 2014, 11:43 am

    can user able to see the desktop in mstsc command

  • Jeffrey October 22, 2014, 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

    • Jeffrey October 22, 2014, 4:27 pm

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

  • neeraj August 7, 2016, 1:18 pm

    Hello..is there any option to trigger MSTC on windows boot up, preferably with pre-specified destination server and credentials?

    Also, if the user logs out of the terminal server, he should get logged out of the local desktop as well.

    I don’t want to give the user the option of a local desktop.

    The local desktop is a Windows 7 system.

    Thanks

Leave a Comment