CmdID

CmdID / Commands / ksetup

ksetup addhosttorealmmap

Adds 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

Adds a service principal name (SPN) mapping between the stated host and the realm. This command also allows you to map a host or multiple hosts that are sharing the same DNS suffix to the realm. The mapping is stored in the registry, under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\HostToRealm.

ksetup /addhosttorealmmap <hostname> <realmname>
ksetup /addhosttorealmmap IPops897 CONTOSO
<hostname>The host name is the computer name, and it can be stated as the computer's fully qualified domain name.
<realmname>The realm name is stated as an uppercase DNS name, such as CORP.CONTOSO.COM.