Windows Mstsc命令教程,带有使用远程桌面协议连接远程系统的示例

Windows operating systems generally managed with RDP remotely. RDP or Remote Desktop Protocol Provides graphical remote management capabilities. Windows operating systems provides a tool named Remote Desktop Connection . This tool can be invoked with mstsc command. In this tutorial we will look different features of Terminal Server Connection or mstsc.

Windows操作系统通常使用RDP进行远程管理。 RDP或远程桌面协议提供图形远程管理功能。 Windows操作系统提供了一个名为“ Remote Desktop Connection的工具。 可以使用mstsc命令调用此工具。 在本教程中,我们将介绍终端服务器连接或mstsc的不同功能。

启动远程连接对话框 (Start Remote Connection Dialog Box)

We can use mstsc command simply start Remote Desktop Connection application with GUI. We can call mstsc command from a MS-DOS command prompt or run Run .

我们可以使用mstsc命令简单地使用GUI启动远程桌面连接应用程序。 我们可以从MS-DOS命令提示符下调用mstsc命令或运行Run

> mstsc
Start Remote Connection Dialog Box
Start Remote Connection Dialog Box
启动远程连接对话框

提供远程系统IP地址或主机名(Provide Remote System IP Address or Hostname)

We can make things easier by providing the remote system or server IP address or hostname. But the hostname should be resolved in our preconfigured DNS server. We will use /v: options with the server IP address or hostname. In this example we will try to connect remote system with IP address 192.168.122.46

通过提供远程系统或服务器的IP地址或主机名,我们可以使事情变得更容易。 但是主机名应该在我们预先配置的DNS服务器中解析。 我们将/v:选项与服务器IP地址或主机名一起使用。 在此示例中,我们将尝试连接IP地址为192.168.122.46远程系统

> mstsc /v:192.168.122.46

提供远程系统RDP端口 (Provide Remote System RDP Port)

By default RDP service uses TCP 3389 as port numbers. But in some cases this may be changed because of security reasons or technical difficulties. In this situations we should provide the port number explicitly. We can add port number after the hostname or IP address of the remote system by delimiting with : . In this example remote system RDP port number is 10000

默认情况下,RDP服务使用TCP 3389作为端口号。 但是在某些情况下,由于安全原因或技术困难,可能会更改此设置。 在这种情况下,我们应明确提供端口号。 我们可以在远程系统的主机名或IP地址之后添加端口号,方法是: 。 在此示例中,远程系统RDP端口号为10000

> mstsc /v:192.168.122.46:10000

启动全屏模式 (Start Full Screen Mode)

By default the Remote Desktop Connection starts with the resolution of the remote system. As we know we can change this resolution or screen mode whatever we want. In this example we will simply fit the Remote Desktop Connection to our current screen resolution by making it Full Screen. We will use /f option to make full screen.

默认情况下,远程桌面连接以远程系统的分辨率开始。 众所周知,我们可以根据需要更改此分辨率或屏幕模式。 在此示例中,我们只需将“远程桌面连接”设置为“全屏”即可使其适合我们当前的屏幕分辨率。 我们将使用/f选项使全屏显示。

> mstsc  /f  /v:192.168.122.46

设置屏幕的宽度和高度 (Set Width and Height of Screen)

In previous example we have set the Remote Desktop Connection window as full screen. An other option is explicitly specifying the screen resolution. We can specify the width and height of the screen. We will use /w: for width and /h: for height options of mstsc command. In this example we will set the width 1024 and height 800.

在前面的示例中,我们将“远程桌面连接”窗口设置为全屏。 另一个选项是显式指定屏幕分辨率。 我们可以指定屏幕的宽度和高度。 我们将使用/w:表示宽度,使用/h:表示mstsc命令的高度选项。 在此示例中,我们将设置宽度1024和高度800。

> mstsc  /w:1024 /h:800  /v:192.168.122.46

打开RDP文件进行编辑 (Open RDP File For Editing)

Remote Desktop Connection sessions can be saved into files with rdp extension. These files holds related configuration about remote desktop connection like remote system IP, compression,resource sharing etc. We can open these rdp configuration files with /edit .

远程桌面连接会话可以保存到具有rdp扩展名的文件中。 这些文件包含有关远程桌面连接的相关配置,例如远程系统IP,压缩,资源共享等。我们可以使用/edit打开这些rdp配置文件。

> mstsc  /edit RC.RDP
LEARN MORE  How To Install and Use Telnet Client In Linux and Windows
了解更多信息如何在Linux和Windows中安装和使用Telnet客户端

翻译自: https://www.poftut.com/windows-mstsc-command-tutorial-examples-connect-remote-systems-remote-desktop-protocol/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值