CmdID

CmdID / Commands / ksetup

ksetup delhosttorealmmap

Removes a service principal name (SPN) mapping between the stated host and the realm. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

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). The mapping is stored in the registry, under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\HostToRealm. After running this command, we recommend making sure the mapping appears in the registry.

ksetup /delhosttorealmmap <hostname> <realmname>
ksetup /delhosttorealmmap IPops897 CONTOSO
<hostname>Specifies the fully-qualified domain name of the computer.
<realmname>Specifies the uppercase DNS name, such as CORP.CONTOSO.COM.