Honor cipher suite order
Respecter l'ordre des suites de chiffrement
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.
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
| 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: 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 DWordDisable
# 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 DWordRevert 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