Open in the explorer

Turn on BranchCache

Activer BranchCache

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › BranchCache FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › BranchCache
Supported on
At least Windows 7 or Windows Server 2008 R2* FR: Au minimum Windows 7 ou Windows Server 2008 R2*
ADMX file
PeerToPeerCaching.admx
Internal name
PeerToPeerCaching/EnableWindowsBranchCache

Explanation

This policy setting specifies whether BranchCache is enabled on client computers to which this policy is applied. In addition to this policy setting, you must specify whether the client computers are hosted cache mode or distributed cache mode clients. To do so, configure one of the following the policy settings:

- Set BranchCache Distributed Cache mode

- Set BranchCache Hosted Cache mode

- Configure Hosted Cache Servers

Policy configuration

Select one of the following:

- Not Configured. With this selection, BranchCache settings are not applied to client computers by this policy. In the circumstance where client computers are domain members but you do not want to enable BranchCache on all client computers, you can specify Not Configured for this domain Group Policy setting, and then configure local computer policy to enable BranchCache on individual client computers. Because the domain Group Policy setting is not configured, it will not over-write the enabled setting that you use on individual client computers where you want to enable BranchCache.

- Enabled. With this selection, BranchCache is turned on for all client computers where the policy is applied. For example, if this policy is enabled in domain Group Policy, BranchCache is turned on for all domain member client computers to which the policy is applied.

- Disabled. With this selection, BranchCache is turned off for all client computers where the policy is applied.

* This policy setting is supported on computers that are running Windows Vista Business, Enterprise, and Ultimate editions with Background Intelligent Transfer Service (BITS) 4.0 installed.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie si BranchCache est activé sur les ordinateurs client auxquels cette stratégie est appliquée. Outre ce paramètre de stratégie, vous devez spécifier si les ordinateurs client sont des clients en mode de cache hébergé ou en mode de cache distribué. Pour ce faire, configurez un des paramètres de stratégie suivants :

- Définir le mode de cache distribué de BranchCache

- Définir le mode de cache hébergé de BranchCache

- Configurer les serveurs de cache hébergé

Configuration de la stratégie

Sélectionnez une des valeurs suivantes :

- Non configuré. Avec cette sélection, cette stratégie n’applique pas les paramètres BranchCache aux ordinateurs client. Si les ordinateurs clients sont membres du domaine mais que vous ne voulez pas activer BranchCache sur tous les ordinateurs clients, vous pouvez spécifier Non configuré pour ce paramètre de stratégie de groupe du domaine, puis configurer la stratégie de l’ordinateur local afin d’activer BranchCache sur des ordinateurs clients individuels. Étant donné que le paramètre de stratégie de groupe de domaine n’est pas configuré, il ne remplace pas le paramètre activé que vous utilisez sur les ordinateurs clients individuels sur lesquels vous souhaitez activer BranchCache.

- Activé. Avec cette sélection, vous activez BranchCache pour tous les ordinateurs client auxquels la stratégie est appliquée. Par exemple, si cette stratégie est activée dans la stratégie de groupe de domaine, BranchCache est activé pour tous les ordinateurs client membres du domaine auxquels la stratégie est appliquée.

- Désactivé. Avec cette sélection, vous désactivez BranchCache pour tous les ordinateurs client auxquels la stratégie est appliquée.

* Ce paramètre de stratégie est pris en charge sur les ordinateurs qui exécutent Windows Vista Professionnel, Entreprise et Édition Intégrale avec BITS (Background Intelligent Transfer Service) 4.0 installé.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PeerDist\Service
Value name
Enable
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: PeerToPeerCaching/EnableWindowsBranchCache
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PeerDist\Service'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enable' -Value 1 -Type DWord

Disable

# Disable: PeerToPeerCaching/EnableWindowsBranchCache
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PeerDist\Service'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enable' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": PeerToPeerCaching/EnableWindowsBranchCache
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PeerDist\Service'
Remove-ItemProperty -Path $k -Name 'Enable' -ErrorAction SilentlyContinue

Availability