Open in the explorer

Limit the BITS Peercache size

Limiter la taille du 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_MaxCacheSize

Explanation

This policy setting limits the maximum amount of disk space that can be used for the BITS peer cache, as a percentage of the total system disk size. BITS will add files to the peer cache and make those files available to peers until the cache content reaches the specified cache size. By default, BITS will use 1 percent of the total system disk for the peercache.

If you enable this policy setting, you can enter the percentage of disk space to be used for the BITS peer cache. You can enter a value between 1 percent and 80 percent.

If you disable or do not configure this policy setting, the default size of the BITS peer cache is 1 percent of the total system disk size.

Note: This policy 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 limite l’espace disque maximal pouvant être utilisé pour le cache partagé entre systèmes homologues BITS sous la forme d’un pourcentage de la taille du disque système. Le service BITS ajoute les fichiers au cache partagé entre systèmes homologues et les met à la disposition des homologues jusqu’à ce que le contenu du cache dépasse la taille de cache spécifiée. Par défaut, le service BITS utilise 1 % du disque système total pour le cache partagé entre systèmes homologues.

Si vous activez ce paramètre de stratégie, vous pouvez indiquer le pourcentage d’espace disque à utiliser pour le cache partagé entre systèmes homologues BITS. La valeur doit être comprise entre 1 et 80 pour cent.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la taille par défaut du cache partagé entre systèmes homologues BITS correspond à 1 % de la taille du disque système.

Remarque : ce paramètre de stratégie n’a aucun effet 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
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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_MaxCacheSize
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Percentage of disk space to be used for the BITS peercache
Set-ItemProperty -Path $k -Name 'MaxCacheSize' -Value 5 -Type DWord  # between 1 and 80

Disable

# Disable: Bits/BITS_MaxCacheSize
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Percentage of disk space to be used for the BITS peercache:Pourcentage d’espace disque à utiliser pour le cache partagé entre systèmes homologues BITS :BITS_MaxSizeNumeric boxdecimalMaxCacheSizeREG_DWORD
Required · Min: 1 · Max: 80 · Default (UI): 5

Availability