Prise en charge de la version de hachage pour BranchCache : valeur de Registre HashSupportVersionOrdinateurHKLM\Software\Policies\Microsoft\Windows\LanmanServer

ID de stratégie
Pol_HashSupportVersion
Étendue
Configuration ordinateur
Pris en charge sur
Au minimum Windows Server 2012, Windows 8 ou Windows RT
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Réseau › Serveur Lanman

Registre

HashSupportVersion

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Version de hachage prise en charge :
Options
EntréeValeur stockée
Prend uniquement en charge la version de hachage V11
Prend uniquement en charge la version de hachage V22
Prend en charge les versions V1 et V23
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LanmanServer]

; Options (en utiliser une seule)
; Prend uniquement en charge la version de hachage V1
"HashSupportVersion"=dword:00000001
; Prend uniquement en charge la version de hachage V2
"HashSupportVersion"=dword:00000002
; Prend en charge les versions V1 et V2
"HashSupportVersion"=dword:00000003
CMD
:: Options (en utiliser une seule)

:: Prend uniquement en charge la version de hachage V1
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "HashSupportVersion" /t REG_DWORD /d 1 /f
:: Prend uniquement en charge la version de hachage V2
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "HashSupportVersion" /t REG_DWORD /d 2 /f
:: Prend en charge les versions V1 et V2
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "HashSupportVersion" /t REG_DWORD /d 3 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Force | Out-Null

# Options (en utiliser une seule)
# Prend uniquement en charge la version de hachage V1
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'HashSupportVersion' -PropertyType DWord -Value 1 -Force | Out-Null
# Prend uniquement en charge la version de hachage V2
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'HashSupportVersion' -PropertyType DWord -Value 2 -Force | Out-Null
# Prend en charge les versions V1 et V2
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'HashSupportVersion' -PropertyType DWord -Value 3 -Force | Out-Null