1. #1
    nitinagarwal1988's Avatar
    nitinagarwal1988 is offline Microsoft MVP
    Join Date
    Jan 2009
    Location
    Pilani, India
    Posts
    1,570

    Lightbulb Command line parameters for Remote Desktop Connection in Windows 7

    Instead of starting Remote Desktop Connection from the Start menu, Windows 7 allows you to start it from the search box, from the Run dialog box, or from a command line. With these methods, you can use additional command line parameters to control how Remote Desktop Connection looks or behaves.

    To start Remote Desktop from the Run dialog box:

    1. Click the Start button, click All Programs, click Accessories and then click Run.
    2. In the search box, type mstsc.
    3. Give a space, followed by any additional parameters that you want to use.



    The following table lists the parameters you can use.
    Command line syntax for Remote Desktop Connection

    Syntax
    mstsc [<connection file>] [/v:<server[ort]>] [/admin] [/f[ullscreen]] [/w:<width>] [/h:<height>] [/public] | [/span] [/edit "connection file"] [/migrate] [/?]

    Parameters and there Description:

    /v:<server[ort]> Specifies the remote computer that you want to connect to.

    /admin - Is used for administration of a Remote Desktop Session Host server. In this version of Remote Desktop Connection, if the Remote Desktop Session Host role service is installed on the remote computer, running mstsc /admin will do the following (for the current connection only):

    • Disable Remote Desktop Services client access licensing
    • Disable time zone redirection
    • Disable RD Connection Broker redirection
    • Disable Remote Desktop Easy Print

    /admin also does the following on connections to Windows Server 2008 R2 with the RD Session Host role service installed:

    • Disables Plug and Play device redirection for this connection only.
    • Changes the remote session theme to Windows Classic View (if itís available) for this connection only.

    To connect to a remote computer with the RD Session Host role service installed, follow these steps:

    1. Open Command Prompt.
    2. Type mstsc /v:server /admin.

    /f - Starts Remote Desktop Connection in full-screen mode.

    /w:<width> Specifies the width of the Remote Desktop Connection window.

    /h:<height> Specifies the height of the Remote Desktop window.

    /public - Runs Remote Desktop Connection in public mode.

    /span - Matches the remote desktop width and height with the local virtual desktop, spanning across multiple monitors if necessary. To span across monitors, the monitors must be arranged to form a rectangle.

    /multimon - Configures the Remote Desktop session monitor layout to be identical to the current client-side configuration.

    /edit "connection file" Opens the specified .rdp connection file for editing.

    /migrate - Migrates older connection files that were created with Client Connection Manager to new .rdp connection files.

    /? - Lists these parameters.

  2. #2
    Pankaj's Avatar
    Pankaj is offline Senior Member
    Join Date
    Nov 2008
    Location
    Pune
    Posts
    164

    Default

    Just curious, does this work in Vista too?

  3. #3
    nitinagarwal1988's Avatar
    nitinagarwal1988 is offline Microsoft MVP
    Join Date
    Jan 2009
    Location
    Pilani, India
    Posts
    1,570

    Default

    Nope, this won't work in Vista. Its only available for Windows 7.

  4. #4
    rkonit's Avatar
    rkonit is offline Gold Member
    Join Date
    Jul 2008
    Location
    Pilani, India
    Posts
    1,363

    Default

    Quote Originally Posted by Pankaj View Post
    Just curious, does this work in Vista too?
    Just type mstsc /? in StartSearch and press enter. it will display a dialog box with all available command line switches.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22