Home XP Commands
XP Syntax

MSTSC

Terminal Server Connection, RDP (Remote Desktop Protocol)

Syntax
      MSTSC option
      MSTSC /Edit"ConnectionFile"
      MSTSC /migrate

Options
   ConnectionFile     The name of an RDP file for connection
   /v:<server[:port]> Terminal server (or PC) to connect to
   /console           Connect to the console of a server
   /f                 Start in Full Screen mode
   /w:width       Width of the RDP screen
   /h:height      Height of the RDP screen
   /edit          Open the RDP file for editing
   /migrate       Migrate a Client connection file to RDP

The /console option only works when connecting to an Windows XP Professional or Windows Server 2003 computer.

When connected to a remote desktop, the key combination Ctrl-Alt-END will send Ctrl-Alt-Del to the remote client.

Examples:

MSTSC /v:MyServer /f /console
MSTSC /v:127.0.0.1 /w:1024 /h:768
MSTSC /v:MyServer /w:800 /h:600
MSTSC /edit filename.rdp

On the Windows XP CD, under \SUPPORT\TOOLS you'll find MSRDPCLI.exe. This is the setup for use with 9.x/2000 machines.

"Ignorance is preferable to error; and he is less remote from the truth who believes nothing, than he who believes what is wrong" - Thomas Jefferson

Related Commands:

MAPISEND - Send email from the command line
RMTSHARE - Share a folder or printer
SHORTCUT - Create a windows shortcut
SHUTDOWN - Shutdown the computer/Log off a user

Equivalent Linux BASH commands:

vncconnect - Connect to a VNC server



Back to the Top

Simon Sheppard
SS64.com