Mstsc Command In Windows Server 2008

This article explains Mstsc command in Windows Server 2008 operating system and also explains its syntax.
  • 2097


Mstsc is command-line tool that is built in Windows Server 2008. This command-line tool is used to create connection to Remote Desktop Session Host (RD Session Host) servers or other remote computers, edits an existing Remote Desktop Connection (.rdp) configuration file, and migrates legacy connection files that were created with Client Connection Manager to new .rdp connection files.


mstsc.exe [<Connection File>] [/v:<Server>[:<Port>]] [/admin] [/f] [/w:<Width> /h:<Height>] [/public] [/span]
mstsc.exe /edit <Connection File>
mstsc.exe /migrate


Parameter Description
<Connection File> The name of an RDP file for the connection.
/v:<Server>[:<Port>] Remote computer to which you want to connect.
/admin Connects you to a session for administering the server.
/f Starts connection in full screen mode.
/w:<Width> Width of the Remote Desktop Window.
/h:<Height> Height of the Remote Desktop Window.
/public Runs Remote Desktop in public mode. In this mode passwords and bitmaps are not cached.
/span Match the Remote Desktop width and height with the local virtual desktop, spanning across multiple monitors if necessary.
/edit <Connection File> Open the RDP file for editing.
/migrate Convert a legacy connections files that were created with Client Connection Manager in to an .rdp file.

Ask Your Question 

Got a programming related question? You may want to post your question here 


More Articles

© 2020 DotNetHeaven. All rights reserved.