Open in the explorer

Define host name-to-Kerberos realm mappings

Définir les mappages de noms d’hôtes à un domaine Kerberos

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Kerberos FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Kerberos
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Kerberos.admx
Internal name
Kerberos/HostToRealm

Explanation

This policy setting allows you to specify which DNS host names and which DNS suffixes are mapped to a Kerberos realm.

If you enable this policy setting, you can view and change the list of DNS host names and DNS suffixes mapped to a Kerberos realm as defined by Group Policy. To view the list of mappings, enable the policy setting and then click the Show button. To add a mapping, enable the policy setting, note the syntax, and then click Show. In the Show Contents dialog box in the Value Name column, type a realm name. In the Value column, type the list of DNS host names and DNS suffixes using the appropriate syntax format. To remove a mapping from the list, click the mapping entry to be removed, and then press the DELETE key. To edit a mapping, remove the current entry from the list and add a new one with different parameters.

If you disable this policy setting, the host name-to-Kerberos realm mappings list defined by Group Policy is deleted.

If you do not configure this policy setting, the system uses the host name-to-Kerberos realm mappings that are defined in the local registry, if they exist.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de spécifier les noms d’hôtes DNS et les suffixes DNS mappés à un domaine Kerberos.

Si vous activez ce paramètre de stratégie, vous pouvez afficher et modifier la liste des noms d’hôtes DNS et des suffixes DNS mappés à un domaine Kerberos, conformément à la définition de la stratégie de groupe. Pour afficher la liste des mappages, activez le paramètre de stratégie et cliquez sur le bouton Afficher. Pour ajouter un mappage, activez le paramètre de stratégie, notez la syntaxe, puis cliquez sur Afficher. Dans la boîte de dialogue Afficher le contenu, dans la colonne Valeur, tapez le nom d’un domaine. Dans la colonne Valeur, tapez la liste des noms d’hôtes DNS et des suffixes DNS en respectant la syntaxe appropriée. Pour supprimer un mappage de la liste, cliquez sur l’entrée à supprimer, puis appuyez sur la touche Suppr. Pour modifier un mappage, supprimez l’entrée actuelle de la liste, puis ajoutez-en une avec d’autres paramètres.

Si vous désactivez ce paramètre de stratégie, la liste des mappages de noms d’hôtes au domaine Kerberos, définie par la stratégie de groupe, est supprimée.

Si vous ne configurez pas ce paramètre de stratégie, le système utilise les mappages de noms d’hôtes au domaine Kerberos qui sont définis dans le Registre local, s’ils existent.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos
Value name
domain_realm_Enabled
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot defined in the ADMX (see the options below)

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: Kerberos/HostToRealm
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'domain_realm_Enabled' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\domain_realm'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Define host name-to-realm mappings
$items = @{
    '<name1>' = '<value1>'
    '<name2>' = '<value2>'
}  # Replace the values with your own
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type String }

Disable

# Disable: Kerberos/HostToRealm
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'domain_realm_Enabled' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Kerberos/HostToRealm
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos'
Remove-ItemProperty -Path $k -Name 'domain_realm_Enabled' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\domain_realm'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Define host name-to-realm mappings:Définir les mappages de noms d’hôtes à un domaine :hosttorealmList (table)listSoftware\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\domain_realmName = value pairs · additiveREG_SZ (values under the key)

Availability