Open in the explorer

Do not allow the computer to act as a BITS Peercaching server

Ne pas autoriser l’utilisation de l’ordinateur en tant que serveur de mise en cache partagé entre systèmes homologues BITS

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Background Intelligent Transfer Service (BITS) FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Service de transfert intelligent en arrière-plan (BITS)
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Bits.admx
Internal name
Bits/BITS_DisablePeercachingServer

Explanation

This policy setting specifies whether the computer will act as a BITS peer caching server. By default, when BITS peer caching is enabled, the computer acts as both a peer caching server (offering files to its peers) and a peer caching client (downloading files from its peers).

If you enable this policy setting, the computer will no longer cache downloaded files and offer them to its peers. However, the computer will still download files from peers.

If you disable or do not configure this policy setting, the computer will offer downloaded and cached files to its peers.

Note: This setting has no effect if the "Allow BITS peer caching" setting is disabled or not configured.

French text from Windows 11 26H2

Ce paramètre de stratégie indique si l’ordinateur sert de serveur de mise en cache partagé entre systèmes homologues BITS. Par défaut, lorsque la mise en cache partagé entre systèmes homologues BITS est activée, l’ordinateur sert à la fois de serveur de mise en cache partagé entre systèmes homologues (met les fichiers à la disposition de ses homologues) et de client de mise en cache partagé entre systèmes homologues (télécharge les fichiers à partir de ses homologues).

Si vous activez ce paramètre de stratégie, l’ordinateur ne met plus en cache les fichiers téléchargés et les propose à ses homologues. Cependant, l’ordinateur télécharge toujours les fichiers à partir des homologues.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, l’ordinateur propose les fichiers téléchargés et mis en cache à ses homologues.

Remarque : ce paramètre n’a aucune incidence si le paramètre « Autoriser la mise en cache partagé entre systèmes homologues BITS » est désactivé ou n’est pas configuré.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\BITS
Value name
DisablePeerCachingServer
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: Bits/BITS_DisablePeercachingServer
$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 'DisablePeerCachingServer' -Value 1 -Type DWord

Disable

# Disable: Bits/BITS_DisablePeercachingServer
$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 'DisablePeerCachingServer' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Bits/BITS_DisablePeercachingServer
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
Remove-ItemProperty -Path $k -Name 'DisablePeerCachingServer' -ErrorAction SilentlyContinue

Availability