自Windows NT Server 4.0起, (Windows NT Server 4.0)Windows操作系统中的远程桌面连接(Remote Desktop Connection)( RSD ) 功能就一直处于活动状态;虽然作为终端服务器(Terminal Server)。随着Windows 10(Windows 10)的到来,RSD现在作为一个内置的独立应用程序存在,不仅可以从Windows 10计算机访问,还可以从主要的移动和计算机操作系统(如Android、iOS、Linux和Mac )访问。许多公司和公司已使用RSD远程控制和操作其网络中的计算机。(RSD)它对于解决您无法物理访问的设备上的问题也很重要。

什么是远程桌面连接(Desktop Connection)?
远程桌面连接 (RSD),(Remote Desktop Connection (RSD),)通常简称为Remote Desktop,是Microsoft创建的一项功能,允许本地计算机在通过 Internet 或网络连接到远程 PC 后对其进行控制。
简而言之(Simply),远程桌面连接(Remote Desktop Connection)是从您的计算机连接和使用另一台计算机的能力。
在我们继续注意之前,任何版本的Windows都可以充当远程桌面客户端(Remote Desktop Client)。但要举办远程赛季,您需要一台运行Windows 10 专业版(Pro)或企业(Enterprise)版的 PC 。
我们已经看到了在Windows 10中(Windows 10)启用远程桌面连接(enable Remote Desktop Connection)的不同方法。今天,我们将看看使用RDP的一些命令行选项。Windows 10 /8/7 允许您从搜索框、运行(Run)对话框或命令行启动远程桌面连接,而不是从开始(Start)菜单启动远程桌面连接。(Remote Desktop Connection)使用这些方法,您可以使用其他命令行参数来控制远程桌面连接(Remote Desktop Connection)的外观或行为。
(Command Line Parameters)远程桌面连接(Remote Desktop Connections)的命令行参数

从运行(Run)对话框或命令提示符(Command Prompt)中,我们可以轻松携带这么多指令。要查看所有可能的命令和简要说明,您可以访问、复制并粘贴以下任何命令:
mstsc.exe /?
这是语法 -
MSTSC [<connection file>] [/v:<server[:port]>] [/g:<gateway>] [/admin] [/f[ullscreen]] [/w:<width> /h:<height>] [/public] | [/span] [/multimon] [/edit "connection file"] [/restrictedAdmin] [/remoteGuard] [/prompt] [/shadow:<sessionID> [/control] [/noConsentPrompt]]
继续(Continue)阅读以查看一些说明:
- 每当您连接到服务器时,Windows都会打开一个新的用户会话。您可以通过打开与控制台的连接来避免这种情况。将/console添加到mstsc
mstsc /console
- 要全屏打开远程桌面会话,请运行以下命令 (/f);
mstsc /f
- 要从命令中指定远程计算机名称,请使用以下命令 (/v);
mstsc /v:computername
上述语法(Syntax)的简要说明
"connection file" – 指定连接的 .RDP 文件的名称。
/v:<server[:port]> – 指定要连接的远程 PC。
/g:<gateway> – 指定用于连接的RD 网关服务器。(RD Gateway)仅当使用 /v 指定端点远程 PC 时才读取此参数。
/admin –将您连接(Connects)到管理远程 PC 的会话。
在此版本的远程桌面连接(Remote Desktop Connection)中,如果远程计算机上安装了远程桌面会话主机(Remote Desktop Session Host)mstsc /admin角色服务,运行将执行以下操作(仅针对当前连接):
- 禁用远程桌面(Remote Desktop) 服务(Services)客户端访问许可
- 禁用时区重定向
- 禁用RD 连接代理(RD Connection Broker)重定向
- 禁用远程桌面轻松打印
- 仅为(Play)此连接禁用即插即用(Plug)设备重定向。
- 仅针对此连接将远程会话主题更改为Windows 经典视图(Windows Classic View)(如果可用)。
/f –以全屏模式启动远程桌面。(Starts Remote Desktop)
/w:<width>– 指定远程桌面(Remote Desktop)窗口 的宽度。
/h:<height>– 指定远程桌面(Remote Desktop)窗口 的高度。
/public–在公共模式下运行远程桌面。(Runs Remote Desktop)
/span –将远程桌面的宽度和高度与本地虚拟桌面相匹配(Matches),必要时跨越多个显示器。为了跨越监视器,监视器必须排列成一个矩形。
/multimon – 将远程桌面(Remote Desktop) 服务(Services)会话监视器布局配置为与当前客户端配置相同。
/edit – 打开指定的 .RDP 连接文件进行编辑。
使用远程桌面连接(Remote Desktop Connection),您只能访问网络中的计算机。您一次只能在Windows 10 上使用一个远程桌面连接,即每个Windows一个远程用户。
但是,运行Windows 10服务器版的 PC 可以同时为不同用户运行远程会话。(Sessions)
阅读下一篇:(Read next:)如何在 Windows Home (RDP)中使用 Windows 10 远程桌面。(use Windows 10 Remote Desktop in Windows Home)
Command Line Parameters for Remote Desktop Connections
The Remote Desktop Connection (RSD) featurе has been aсtive in thе Windows operating system since Windows NT Server 4.0; though as a Tеrminal Servеr. Come the Windows 10, RSD now exists as an іnbuilt standalonе app that can be accessed from not only Windows 10 compυters but frоm major mobile and computer OS like Android, iOS, Linux, and Mac. RSD has beеn used by many companieѕ and firms to сontrol and operate computеrs in its network remotely. It is also essential for solving problems on devicеs you can’t acсess physically.

What is a Remote Desktop Connection?
Remote Desktop Connection (RSD), which is often shortened to Remote Desktop, is a feature created by Microsoft that allows a local computer to control a remote PC after connecting to it over the internet or a network.
Simply put, Remote Desktop Connection is the ability to connect and use another computer from your computer.
Before we proceed note, any edition of Windows can act as a Remote Desktop Client. But to host a remote season, you need a PC running Windows 10 Pro or Enterprise.
We have already seen the different ways to enable Remote Desktop Connection in Windows 10. Today, we will take a look at some command-line options for using RDP. Instead of starting Remote Desktop Connection from the Start menu, Windows 10/8/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.
Command Line Parameters for Remote Desktop Connections

From the Run dialogue box or the Command Prompt, we can carry so many instructions easily. To see all the possible commands and a brief description you can access, copy and paste any of the commands below:
mstsc.exe /?
This is the syntax-
MSTSC [<connection file>] [/v:<server[:port]>] [/g:<gateway>] [/admin] [/f[ullscreen]] [/w:<width> /h:<height>] [/public] | [/span] [/multimon] [/edit "connection file"] [/restrictedAdmin] [/remoteGuard] [/prompt] [/shadow:<sessionID> [/control] [/noConsentPrompt]]
Continue reading to see a few descriptions:
- Whenever you connect to the server, Windows opens a new user session. You can avoid this by opening a connection to the console. Add /console to the mstsc
mstsc /console
- To open remote desktop session in full screen, run the command below (/f);
mstsc /f
- To specify the remote computer name from the command, use the command below (/v);
mstsc /v:computername
Brief description of the Syntax above
"connection file" – Specifies the name of an .RDP file for the connection.
/v:<server[:port]> – Specifies the remote PC to which you want to connect.
/g:<gateway> – Specifies the RD Gateway server to use for the connection. This parameter is only read if the endpoint remote PC is specified with /v.
/admin – Connects you to the session for administering a remote PC.
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
- 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.
/f – Starts Remote Desktop in full-screen mode.
/w:<width> – Specifies the width of the Remote Desktop window.
/h:<height> – Specifies the height of the Remote Desktop window.
/public– Runs Remote Desktop 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 Services session monitor layout to be identical to the current client-side configuration.
/edit – Opens the specified .RDP connection file for editing.
With the Remote Desktop Connection, you have access to only computers in your network. You can use only one remote desktop connection on Windows 10 at a time, i.e., one remote user per Windows.
However, a PC running Windows 10 server edition can run remote Sessions for different users at the same time.
Read next: How to use Windows 10 Remote Desktop in Windows Home (RDP).