Use forest search order
Utiliser l’ordre de recherche de la forêt
Explanation
This policy setting defines the list of trusting forests that the Kerberos client searches when attempting to resolve two-part service principal names (SPNs).
If you enable this policy setting, the Kerberos client searches the forests in this list, if it is unable to resolve a two-part SPN. If a match is found, the Kerberos client requests a referral ticket to the appropriate domain.
If you disable or do not configure this policy setting, the Kerberos client does not search the listed forests to resolve the SPN. If the Kerberos client is unable to resolve the SPN because the name is not found, NTLM authentication might be used.
Ce paramètre de stratégie définit la liste des forêts autorisées à approuver dans laquelle le client Kerberos effectue sa recherche lorsqu’il essaie de résoudre les noms de principaux du service en deux parties.
Si vous activez ce paramètre de stratégie, le client Kerberos effectue sa recherche dans les forêts de cette liste, s’il ne parvient pas à résoudre un nom de principal du service en deux parties. S’il trouve une correspondance, le client Kerberos demande un ticket de référence au domaine approprié.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le client Kerberos n’effectue pas sa recherche dans la liste des forêts répertoriées pour résoudre le nom de principal du service. Si le client Kerberos ne parvient pas à résoudre le nom de principal du service, car il est introuvable, l’authentification NTLM peut être utilisée.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters- Value name
UseForestSearch
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
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/ForestSearch
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UseForestSearch' -Value 1 -Type DWord
# Forests to Search
Set-ItemProperty -Path $k -Name 'ForestSearchList' -Value '<value>' -Type StringDisable
# Disable: Kerberos/ForestSearch
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UseForestSearch' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Kerberos/ForestSearch
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
Remove-ItemProperty -Path $k -Name 'UseForestSearch' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ForestSearchList' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Forests to SearchForêts dans lesquelles effectuer la rechercheForestSearchList | Text boxtext | ForestSearchList | REG_SZ | Required |