Use Command Line Parameters With Remote Desktop Connection

Excellent articles on using CLI for Windows Remote Desktop Connection.
Link to the Source








"
Use command line parameters with Remote Desktop Connection

Instead of starting Remote Desktop Connection from the Start menu, you can start it from the search box in this version of Windows, from the Run dialog box, or from a command line. That way 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, follow these steps:




1.

Click the Start button Picture of the Start button, click All Programs, click Accessories, and then click Run.

2.

In the Open box, type mstsc.

3.

Type 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 [] [/v:] [/console] [/f[ullscreen]] [/w:] [/h:] [/public] | [/span] [/edit "connection file"] [/migrate] [/?]

Command line parameters for Remote Desktop Connection

Parameter

Description

/v:

Specifies the remote computer you want to connect to.

/console

In this version of Remote Desktop Connection, if the Terminal Server role service is installed on the remote computer, mstsc /console will:

Disable Terminal Services client access licensing (TS-CAL) for this connection only.

Disable time zone redirection for this connection only.

Disable TS Session Directory redirection for this connection only.

To connect to the console session of a remote computer with the Terminal Server role service installed, follow these steps:




1.

Open the Command Prompt window by clicking the Start button Picture of the Start button, clicking All Programs, clicking Accessories, and then clicking Command Prompt.

2.

Type mstsc /v:server /console.

You can also use the "/console" parameter to connect to a server running Windows Server 2003.

/f

Starts Remote Desktop Connection in full-screen mode.

/w:

Specifies the width of the Remote Desktop Connection window.

/h:

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 all have the same height and be aligned side by side.

/edit

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.

No comments: