User Tools

Site Tools


windows:mstsc

Windows utils

mstsc

refer: http://ss64.com/nt/mstsc.html Connect and login to a remote machine using the Remote Desktop Protocol (RDP) also known as Terminal Server Connection (TSC).

Syntax:

MSTSC option
MSTSC /Edit "ConnectionFile"
MSTSC /migrate

Options:

ConnectionFile     The name of an RDP file for connection
 
/v:<server[:port]> The remote computer to connect to
 
/console       Connect to the console of a server (NT/XP)
/Admin         Connect to a session for administering the server(Vista/2008)
 
/f             Start in Full Screen mode
 
/w:width       Width of the RDP screen
/h:height      Height of the RDP screen
 
/span          Match the Remote Desktop width and height with the local virtual
               desktop, spanning across multiple monitors if necessary.(Vista/2008)
 
/public        Run Remote Desktop in public mode. (Vista/2008)
               In public mode, passwords and bitmaps are not cached.
 
/edit          Open the RDP file for editing.
/migrate       Convert a legacy Client connection file into an .RDP file

To connect to a remote computer the user account must be a member of the local group 'Remote Desktop users' on the remote server (either directly or inherited via a global group) in addition the user account needs the privilege SeRemoteInteractiveLogonRight (allow logon through RDP/Terminal Services.)

The command CMDKEY can be used to setup/save the password credentials used by Remote Desktop.

Shortcut Keys Shortcut keys that can be used when connected to a Remote Desktop:

Windows ShortcutRemote DesktopDescription
Ctrl+ALT+DelCtrl+ALT+ENDBring up the Windows Security dialog box.
ALT+TABALT+Page UpSwitch between programs from left to right.
ALT+Shift+TABALT+Page DownSwitch between programs from right to left.
ALT+Esc
ALT+Shift+EscALT+INSERTSwitch between programs in the order they were started.
Ctrl+EscALT+HOMEDisplay the Start menu.
n/aCtrl+ALT+BREAKSwitch the client between full-screen mode and window mode.
ALT+Space BarALT+DeleteDisplays the remote window's Control menu
ALT+Print ScreenCtrl+ALT+NumPad MINUSPlace an image of active window onto the Terminal Services clipboard.
Print ScreenCtrl+ALT+NumPad PLUSPlace an image of the entire TS client on the Terminal Services clipboard. This is almost the same as pressing ALT+Print Screen to capute the window locally but removes the Windows chrome and so shows more of the remote window.
windows/mstsc.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1