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

ksetup mapuser

· 52CE 我爱测

Reference article for the ksetup mapuser command, which maps the name of a Kerberos principal to an account.

Maps the name of a Kerberos principal to an account.

Syntax

ksetup /mapuser <principal> <account>

Parameters

Parameter Description
<principal> Specifies the fully-qualified domain name of any principal user. For example, mike@corp.CONTOSO.COM. If you don't specify an account parameter, mapping is deleted for the specified principal.
<account> Specifies any account or security group name that exists on this computer, such as Guest, Domain Users, or Administrator. If this parameter is omitted, mapping is deleted for the specified principal.
Remarks
  • An account can be specifically identified, such as Domain Guests, or you can use a wildcard character (*) to include all accounts.

  • The computer only authenticates the principals of the given realm if they present valid Kerberos tickets.

  • Whenever changes are made to the external Key Distribution Center (KDC) and the realm configuration, a restart of the computer where the setting was changed is required.

Examples

To see the current mapped settings and the default realm, type:

ksetup

To map Mike Danseglio's account within the Kerberos realm CONTOSO to the guest account on this computer, granting him all the privileges of a member of the built-in Guest account without having to authenticate to this computer, type:

ksetup /mapuser mike@corp.CONTOSO.COM guest

To remove the mapping of Mike Danseglio's account to the guest account on this computer to prevent him from authenticating to this computer with his credentials from CONTOSO, type:

ksetup /mapuser mike@corp.CONTOSO.COM

To map Mike Danseglio's account within the CONTOSO Kerberos realm to any existing account on this computer, type:

ksetup /mapuser mike@corp.CONTOSO.COM *

Note: If only the Standard User and Guest accounts are active on this computer, Mike's privileges are set to those.

To map all accounts within the CONTOSO Kerberos realm to any existing account of the same name on this computer, type:

ksetup /mapuser * *

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)

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

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