大网数据广告活动
Windows排障命令

Remote Desktop Services (Terminal Services) command-line tools reference

· 52CE 我爱测

Reference article for the Remote Desktop Services (RDS) command-line tools.

Learn about the available Remote Desktop Services (Terminal Services) command-line tools, with descriptions and links for more detailed information.

Note: To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server.

| Command | Description | |--|--|--| | change | Changes the Remote Desktop Session Host server settings for sign in, COM port mappings, and install mode. | | change logon | Enables or disables logons from client sessions on an Remote Desktop Session Host server, or displays current logon status. | | change port | Lists or changes the COM port mappings to be compatible with MS-DOS applications. | | change user | Changes the install mode for the Remote Desktop Session Host server. | | chglogon | Enables or disables logons from client sessions on an Remote Desktop Session Host server, or displays current logon status. | | chgport | Lists or changes the COM port mappings to be compatible with MS-DOS applications. | | chgusr | Changes the install mode for the Remote Desktop Session Host server. | | flattemp | Enables or disables flat temporary folders. | | logoff | Signs out a user from a session on an Remote Desktop Session Host server and deletes the session from the server. | | msg | Sends a message to a user on an Remote Desktop Session Host server. | | mstsc | Creates connections to Remote Desktop Session Host servers or other remote computers. | | qappsrv | Displays a list of all Remote Desktop Session Host servers on the network. | | qprocess | Displays information about processes that are running on an Remote Desktop Session Host server. | | query | Displays information about processes, sessions, and Remote Desktop Session Host servers. | | query process | Displays information about processes that are running on an Remote Desktop Session Host server. | | query session | Displays information about sessions on an Remote Desktop Session Host server. | | query termserver | Displays a list of all Remote Desktop Session Host servers on the network. | | query user | Displays information about user sessions on an Remote Desktop Session Host server. | | quser | Displays information about user sessions on an Remote Desktop Session Host server. | | qwinsta | Displays information about sessions on an Remote Desktop Session Host server. | | rdpsign | Enables you to digitally sign a Remote Desktop Protocol (.rdp) file. | | reset session | Enables you to reset (delete) a session on an Remote Desktop Session Host server. | | rwinsta | Enables you to reset (delete) a session on an Remote Desktop Session Host server. | | shadow | Enables you to remotely control an active session of another user on an Remote Desktop Session Host server. | | tscon | Connects to another session on an Remote Desktop Session Host server. | | tsdiscon | Disconnects a session from an Remote Desktop Session Host server. | | tskill | Ends a process running in a session on an Remote Desktop Session Host server. | | tsprof | Copies the Remote Desktop Services user configuration information from one user to another. |

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。