Open in the explorer

Honor cipher suite order

Respecter l'ordre des suites de chiffrement

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Lanman Server FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Serveur Lanman
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
LanmanServer.admx
Internal name
LanmanServer/Pol_HonorCipherSuiteOrder

Explanation

This policy setting determines how the SMB server selects a cipher suite when negotiating a new connection with an SMB client.

If you enable this policy setting, the SMB server will select the cipher suite it most prefers from the list of client-supported cipher suites, ignoring the client's preferences.

If you disable or do not configure this policy setting, the SMB server will select the cipher suite the client most prefers from the list of server-supported cipher suites.

Note: When configuring this security setting, changes will not take effect until you restart Windows.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine la façon dont le serveur SMB sélectionne une suite de chiffrement lors de la négociation d'une nouvelle connexion avec un client SMB.

Si vous activez ce paramètre de stratégie, le serveur SMB sélectionne sa suite de chiffrement préférée dans la liste des suites de chiffrement prises en charge par le client, sans tenir compte des préférences du client.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le serveur SMB sélectionne la suite de chiffrement préférée du client dans la liste des suites de chiffrement prises en charge par le serveur.

Remarque : lorsque vous configurez ce paramètre de sécurité, les modifications ne prendront effet qu'après le redémarrage de Windows.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LanmanServer
Value name
HonorCipherSuiteOrder
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: LanmanServer/Pol_HonorCipherSuiteOrder
$k = 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HonorCipherSuiteOrder' -Value 1 -Type DWord

Disable

# Disable: LanmanServer/Pol_HonorCipherSuiteOrder
$k = 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HonorCipherSuiteOrder' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": LanmanServer/Pol_HonorCipherSuiteOrder
$k = 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer'
Remove-ItemProperty -Path $k -Name 'HonorCipherSuiteOrder' -ErrorAction SilentlyContinue

Availability