リモート デスクトップ接続
mstsc
- C:\Windows\system32\mstsc.exe /?
Output:
[Window Title]
リモート デスクトップ接続の使用法
[Content]
MSTSC [<接続ファイル>] [/v:<サーバー[:ポート]>] [/g:<ゲートウェイ>] [/admin] [/f[ullscreen]] [/w:<幅> /h:<高さ>] [/public] | [/span] [/multimon] [/edit "接続ファイル"] [/restrictedAdmin] [/remoteGuard] [/prompt] [/shadow:<セッション ID> [/control] [/noConsentPrompt]]
"接続ファイル" -- 接続用の .RDP ファイルの名前を指定します。
/v:<サーバー[:ポート]> -- 接続先のリモート PC を指定します。
/g:<ゲートウェイ> -- 接続に使用する RD ゲートウェイ サーバーを指定します。このパラメーターは、エンドポイントのリモート PC が /v で指定されている場合にのみ読み込まれます。
/admin -- リモート PC 管理用のセッションに接続します。
/f -- リモート デスクトップを全画面モードで開始します。
/w:<幅> -- リモート デスクトップ ウィンドウの幅を指定します。
/h:<高さ> -- リモート デスクトップ ウィンドウの高さを指定します。
/public -- リモート デスクトップをパブリック モードで実行します。
/span -- リモート デスクトップの幅と高さをローカル仮想デスクトップと同じにします (必要であれば、複数のモニターにまたがって表示します)。複数のモニターにまたがって表示するには、モニター全体が長方形になるように配置する必要があります。
/multimon -- リモート デスクトップ サービス セッションのモニターのレイアウトを、クライアント側の現在の構成と同じになるようにします。
/edit -- 指定した .RDP 接続ファイルを編集用として開きます。
/restrictedAdmin -- リモート PC に制限付き管理モードで接続します。このモードでは、リモート PC に資格情報が送信されないので、接続先 PC が侵害されている場合でも接続元が保護されます。ただし、リモート PC からの接続は他の PC によって認証されるとは限らず、アプリケーションの機能や互換性に影響する可能性があります。このパラメーターは /admin を表します。
/remoteGuard -- Remote Guard を使用してデバイスをリモート デバイスに接続します。Remote Guard は、リモート PC に資格情報が送信されることを防ぐので、接続先のリモート PC が侵害されている場合でも資格情報を保護できます。制限付き管理モードとは異なり、Remote Guard は、すべての要求をデバイスにリダイレクトして戻すことによって、リモート PC から行われた接続もサポートします。
/prompt -- リモート PC に接続する際、資格情報の入力を求めるメッセージが表示されます。
/shadow:<セッション ID> -- シャドウ処理するセッションの ID を指定します。
/control -- シャドウ処理の際にセッションの制御を可能にします。
/noConsentPrompt -- ユーザーの同意がなくてもシャドウ処理ができるようにします。
[OK]
[Window Title]
Remote Desktop Connection Usage
[Content]
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]]
"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.
/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.
/restrictedAdmin -- Connects you to the remote PC in Restricted Administration mode. In this mode, credentials won't be sent to the remote PC, which can protect you if you connect to a PC that has been compromised. However, connections made from the remote PC might not be authenticated by other PCs, which might impact application functionality and compatibility. This parameter implies /admin.
/remoteGuard -- Connects your device to a remote device using Remote Guard. Remote Guard prevents credentials from being sent to the remote PC, which can help protect your credentials if you connect to a remote PC that has been compromised. Unlike Restricted Administration mode, Remote Guard also supports connections made from the remote PC by redirecting all requests back to your device.
/prompt -- Prompts you for your credentials when you connect to the remote PC.
/shadow:<sessionID> -- Specifies the ID of the session to shadow.
/control -- Allows control of the session when shadowing.
/noConsentPrompt -- Allows shadowing without user consent.
[OK]
Return Code: 1
C:\Windows\system32\mstsc.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 1557504bytes |
| Creation Time | 2022/09/29 14:53:28 |
| LastWrite Time | 2022/09/29 14:53:28 |
| ProductVersion | 10.0.19041.2075 |
| FileVersion | 10.0.19041.2075 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | 7ffae462b1c5a51c720d428237febd97 |
| SHA1 | bc0ac58f858cfd14f2db0a3c4a44da4ea9ad21d7 |
| SHA224 | 8e6f1244748285a1942d9411caba43814f10588947e4b37f49d6c566 |
| SHA256 | 355ca834be29c148d27f973299fac1c434bcec5b7b319a47c7d98eb1c96da1eb |
| SHA384 | 9fdfe47bdc7c1881ecb7623c5ad23a05382a9b5aee2568c9dbddb3fa58b8d987ecf2f2e5e2e8884e24eb8ed753fd152a |
| SHA512 | 7cd6c6f9357b0c1c0abd3ef046ad7ed48d627071a99603f9ffe5f68894afbebca46bb634f0f75a665c171fcefc984b5232300399a8f1637ff55bdc113e8961e2 |