Open in the explorer

Limit the maximum number of ranges that can be added to the file in a BITS job

Limiter le nombre maximal de plages pouvant être ajoutées à un fichier dans une tâche 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_MaxRangesPerFile

Explanation

This policy setting limits the number of ranges that can be added to a file in a BITS job. By default, files in a BITS job are limited to 500 ranges per file. You can use this setting to raise or lower the maximum number ranges per file.

If you enable this policy setting, BITS will limit the maximum number of ranges that can be added to a file to the specified number.

If you disable or do not configure this policy setting, BITS will limit ranges to 500 ranges per file.

Note: BITS Jobs created by services and the local administrator account do not count toward this limit.

French text from Windows 11 26H2

Ce paramètre de stratégie limite le nombre de plages pouvant être ajoutées à un fichier dans une tâche BITS. Par défaut, les fichiers d’une tâche BITS sont limités à 500 plages par fichier. Vous pouvez utiliser ce paramètre pour augmenter ou réduire le nombre maximal de plages par fichier.

Si vous activez ce paramètre de stratégie, le service BITS limite à la valeur spécifiée le nombre maximal de plages pouvant être ajoutées à un fichier.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le service BITS utilise la valeur par défaut de 500 plages par fichier.

Remarque : les tâches BITS créées par les services et le compte d’administrateur local n’entrent pas dans cette limite.

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_MaxRangesPerFile
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Maximum number of ranges that can be added to the file in a BITS job
Set-ItemProperty -Path $k -Name 'MaxRangesPerFile' -Value 500 -Type DWord  # maximum 4294967200

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Maximum number of ranges that can be added to the file in a BITS job:Nombre maximal de plages pouvant être ajoutées à un fichier dans une tâche BITS :BITS_MaxRangesPerFileListNumeric boxdecimalMaxRangesPerFileREG_DWORD
Required · Max: 4294967200 · Default (UI): 500

Availability