Allow BITS Peercaching
Autoriser la mise en cache partagé entre systèmes homologues BITS
Explanation
This policy setting determines if the Background Intelligent Transfer Service (BITS) peer caching feature is enabled on a specific computer. By default, the files in a BITS job are downloaded only from the origin server specified by the job's owner.
If BITS peer caching is enabled, BITS caches downloaded files and makes them available to other BITS peers. When transferring a download job, BITS first requests the files for the job from its peers in the same IP subnet. If none of the peers in the subnet have the requested files, BITS downloads them from the origin server.
If you enable this policy setting, BITS downloads files from peers, caches the files, and responds to content requests from peers. Using the "Do not allow the computer to act as a BITS peer caching server" and "Do not allow the computer to act as a BITS peer caching client" policy settings, it is possible to control BITS peer caching functionality at a more detailed level. However, it should be noted that the "Allow BITS peer caching" policy setting must be enabled for the other two policy settings to have any effect.
If you disable or do not configure this policy setting, the BITS peer caching feature will be disabled, and BITS will download files directly from the origin server.
Ce paramètre de stratégie indique si la fonctionnalité de mise en cache des homologues BITS est activée sur un ordinateur spécifique. Par défaut, les fichiers d’une tâche BITS sont téléchargés uniquement à partir du serveur d’origine spécifié par le propriétaire de la tâche.
Si la mise en cache partagé entre systèmes homologues BITS est activée, le service BITS met en cache les fichiers téléchargés et met le contenu à la disposition d’autres homologues BITS. Lors du transfert d’une tâche de téléchargement, le service BITS demande tout d’abord les fichiers de la tâche à ses homologues du même sous-réseau IP. Si aucun d’eux ne dispose des fichiers demandés, le service BITS télécharge les fichiers à partir du serveur d’origine.
Si vous activez ce paramètre de stratégie, le service BITS télécharge les fichiers à partir des homologues, met les fichiers en cache et répond aux demandes de contenu des homologues. Grâce aux paramètres de stratégie « Ne pas autoriser l’utilisation de l’ordinateur en tant que serveur de mise en cache partagé entre systèmes homologues BITS » et « Ne pas autoriser l’utilisation de l’ordinateur en tant que client de mise en cache partagé entre systèmes homologues BITS », il est possible de contrôler la fonctionnalité de mise en cache partagé entre systèmes homologues BITS avec davantage de précision. Toutefois, le paramètre de stratégie « Autoriser la mise en cache partagé entre systèmes homologues BITS » doit être activé pour que les deux autres paramètres de stratégie soient effectifs.
Si vous désactivez ou ne configurez pas ce paramètre, la fonctionnalité de mise en cache partagé entre systèmes homologues BITS est désactivée et le service BITS télécharge les fichiers directement à partir du serveur d’origine.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\BITS- Value name
EnablePeercaching
| 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: Bits/BITS_EnablePeercaching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnablePeercaching' -Value 1 -Type DWordDisable
# Disable: Bits/BITS_EnablePeercaching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnablePeercaching' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Bits/BITS_EnablePeercaching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
Remove-ItemProperty -Path $k -Name 'EnablePeercaching' -ErrorAction SilentlyContinue