ksetup delhosttorealmmapksetup delhosttorealmmap

删除所述主机和领域之间 (SPN) 映射的服务主体名称。Removes a service principal name (SPN) mapping between the stated host and the realm. 此命令还会删除主机到领域 (或多个主机到领域) 之间的任何映射。This command also removes any mapping between a host to realm (or multiple hosts to realm).

该映射存储在下的注册表中 HKEY_LOCAL_MACHINE\SYSTEM\CurrentContolSet\Lsa\Kerberos\HostToRealmThe mapping is stored in the registry, under HKEY_LOCAL_MACHINE\SYSTEM\CurrentContolSet\Lsa\Kerberos\HostToRealm. 运行此命令后,建议确保映射显示在注册表中。After running this command, we recommend making sure the mapping appears in the registry.

语法Syntax

ksetup /delhosttorealmmap <hostname> <realmname>

参数Parameters

参数Parameter 说明Description
<hostname> 指定计算机的完全限定的域名。Specifies the fully-qualified domain name of the computer.
<realmname> 指定大写的 DNS 名称,例如 CORP。CONTOSO.COM。Specifies the uppercase DNS name, such as CORP.CONTOSO.COM.

示例Examples

若要更改领域 CONTOSO 的配置,并删除主计算机 IPops897 到领域的映射,请键入:To change the configuration of the realm CONTOSO, and to delete the mapping of the host computer IPops897 to the realm, type:

ksetup /delhosttorealmmap IPops897 CONTOSO

其他参考Additional References