共用方式為


遠端桌面 URI 配置

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows 11、Windows 10

本文件定義遠端桌面的統一資源識別項 (URI) 格式。 這些 URI 配置允許使用各種命令來叫用遠端桌面用戶端。

ms-rd URI 配置

注意

目前只有 Windows 桌面用戶端 (MSRDC) 支援 ms-rd URI 配置。

ms-rd URI 會提供選項,讓您使用下列格式指定用戶端命令以及該命令特定的一組參數集:

ms-rd:command?parameters

參數會使用索引鍵/值組 (以 & 分隔) 的查詢字串格式,提供指定命令的其他資訊:

param1=value1&param2=value2&…

命令與參數

以下是目前支援的命令及其對應參數的清單。

在沒有任何命令的情況下使用 ms-rd: 啟動用戶端。

訂閱

此命令會啟動用戶端並啟動訂閱程序。

命令名稱:subscribe

命令參數:

參數 描述
URL 指定工作區 URL。 有效的 URL,例如 https://contoso.com

範例:ms-rd:subscribe?url=https://contoso.com

舊版 rdp URI 配置

注意

只有 macOS、iOS 和 Android 裝置的用戶端支援下列 URI 配置。 其正由上述的新 ms-rd URI 所取代。

Microsoft 遠端桌面會使用 URI 配置 rdp://query_string 來儲存啟動用戶端時所使用的預先設定屬性設定。 查詢字串代表在 URL 中提供的單一或一組 RDP 屬性。

RDP 屬性以 & 符號分隔。 例如,連線到電腦時,該字串是:

rdp://full%20address=s:mypc:3389&audiomode=i:2&disable%20themes=i:1

下表提供可搭配 iOS、Mac 及 Android「遠端桌面」用戶端使用的完整支援屬性清單。 (平台欄中的 "x" 表示是支援的屬性。 以 >形箭號 (<>) 表示的值代表「遠端桌面」用戶端所支援的值。)

RDP 屬性 Android Mac iOS
allow desktop composition=i:<0 或 1> x x x
allow font smoothing=i:<0 或 1> x x x
alternate shell=s:<字串> x x x
audiomode=i:<0、1 或 2> x x x
authentication level=i:<0 或 1> x x x
connect to console=i:<0 或 1> x x x
disable cursor settings=i:<0 或 1> x x x
disable full window drag=i:<0 或 1> x x x
disable menu anims=i:<0 或 1> x x x
disable themes=i:<0 或 1> x x x
disable wallpaper=i:<0 或 1> x x x
drivestoredirect=s:* (這是唯一支援的值) x x
desktopheight=i:<以像素為單位的值> x
desktopwidth=i:<以像素為單位的值> x
domain=s:<字串> x x x
full address=s:<字串> x x x
gatewayhostname=s:<字串> x x x
gatewayusagemethod=i:<1 或 2> x x x
prompt for credentials on client=i:<0 或 1> x
loadbalanceinfo=s:<字串> x x x
redirectprinters=i:<0 或 1> x
remoteapplicationcmdline=s:<字串> x x x
remoteapplicationmode=i:<0 或 1> x x x
remoteapplicationprogram=s:<字串> x x x
shell working directory=s:<字串> x x x
Use redirection server name=i:<0 或 1> x x x
username=s:<或> x x x
screen mode id=i:<1 或 2> x
session bpp=i:<8、15、16、24 或 32> x
use multimon=i:<0 或 1> x