Hash-publicatie voor BranchCache: registerwaarde HashPublicationForPeerCachingComputerHKLM\Software\Policies\Microsoft\Windows\LanmanServer

Beleids-ID
Pol_HashPublication
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows Server 2008 R2 of Windows 7
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Netwerk › Lanman Server

Register

HashPublicationForPeerCaching

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Acties bij hash-publicatie:
Opties
ItemOpgeslagen waarde
Hash-publicatie alleen toestaan voor gedeelde mappen waarvoor BranchCache is ingeschakeld0
Hash-publicatie niet toestaan voor gedeelde mappen1
Hash-publicatie toestaan voor alle gedeelde mappen2
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; Hash-publicatie alleen toestaan voor gedeelde mappen waarvoor BranchCache is ingeschakeld
"HashPublicationForPeerCaching"=dword:00000000
; Hash-publicatie niet toestaan voor gedeelde mappen
"HashPublicationForPeerCaching"=dword:00000001
; Hash-publicatie toestaan voor alle gedeelde mappen
"HashPublicationForPeerCaching"=dword:00000002
CMD
:: Opties (gebruik er maar één)

:: Hash-publicatie alleen toestaan voor gedeelde mappen waarvoor BranchCache is ingeschakeld
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "HashPublicationForPeerCaching" /t REG_DWORD /d 0 /f
:: Hash-publicatie niet toestaan voor gedeelde mappen
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "HashPublicationForPeerCaching" /t REG_DWORD /d 1 /f
:: Hash-publicatie toestaan voor alle gedeelde mappen
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "HashPublicationForPeerCaching" /t REG_DWORD /d 2 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Force | Out-Null

# Opties (gebruik er maar één)
# Hash-publicatie alleen toestaan voor gedeelde mappen waarvoor BranchCache is ingeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'HashPublicationForPeerCaching' -PropertyType DWord -Value 0 -Force | Out-Null
# Hash-publicatie niet toestaan voor gedeelde mappen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'HashPublicationForPeerCaching' -PropertyType DWord -Value 1 -Force | Out-Null
# Hash-publicatie toestaan voor alle gedeelde mappen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'HashPublicationForPeerCaching' -PropertyType DWord -Value 2 -Force | Out-Null