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
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.
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
| 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_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 DWordDisable
# 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 DWordRevert 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