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

tsprof

· 52CE 我爱测

Reference article for the tsprof command, which copies the Remote Desktop Services user configuration information from one user to another.

Copies the Remote Desktop Services user configuration information from one user to another. The Remote Desktop Services user configuration information appears in the Remote Desktop Services extensions to Local Users and Groups and active directory Users and computers.

Note: You can also use the tsprof command to set the profile path for a user.

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

Syntax

tsprof /update {/domain:<Domainname> | /local} /profile:<path> <username>
tsprof /copy {/domain:<Domainname> | /local} [/profile:<path>] <src_user> <dest_user>
tsprof /q {/domain:<Domainname> | /local} <username>

Parameters

Parameter Description
/update Updates profile path information for <username> in domain <domainname> to <profilepath>.
/domain:<Domainname> Specifies the name of the domain in which the operation is applied.
/local Applies the operation only to local user accounts.
/profile:<path> Specifies the profile path as displayed in the Remote Desktop Services extensions in Local Users and Groups and active directory Users and computers.
<username> Specifies the name of the user for whom you want to update or query the server profile path.
/copy Copies user configuration information from <src_user> to <dest_user> and updates the profile path information for <dest_user> to <profilepath>. Both <src_user> and <dest_user> must either be local or must be in domain <domainname>.
<src_user> Specifies the name of the user from whom you want to copy the user configuration information. Also known as the source user.
<dest_user> Specifies the name of the user to whom you want to copy the user configuration information. Also known as the destination user.
/q Displays the current profile path of the user for whom you want to query the server profile path.
/? Displays help at the command prompt.

Examples

To copy user configuration information from LocalUser1 to LocalUser2, type:

tsprof /copy /local LocalUser1 LocalUser2

To set the Remote Desktop Services profile path for LocalUser1 to a directory called c:\profiles, type:

tsprof /update /local /profile:c:\profiles LocalUser1

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)

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

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