Open in the explorer

Limit the maximum number of files allowed in a BITS job

Limiter le nombre maximal de fichiers autorisés 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_MaxFilesPerJob

Explanation

This policy setting limits the number of files that a BITS job can contain. By default, a BITS job is limited to 200 files. You can use this setting to raise or lower the maximum number of files a BITS jobs can contain.

If you enable this policy setting, BITS will limit the maximum number of files a job can contain to the specified number.

If you disable or do not configure this policy setting, BITS will use the default value of 200 for the maximum number of files a job can contain.

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 fichiers pouvant être contenus dans une tâche BITS. Par défaut, une tâche BITS est limitée à 200 fichiers. Vous pouvez utiliser ce paramètre pour augmenter ou réduire le nombre maximal de fichiers pouvant être contenus dans une tâche BITS.

Si vous activez ce paramètre de stratégie, le service BITS limite à la valeur spécifiée le nombre maximal de fichiers pouvant être contenus dans une tâche.

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

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_MaxFilesPerJob
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Maximum number of files allowed in a BITS job
Set-ItemProperty -Path $k -Name 'MaxFilesPerJob' -Value 200 -Type DWord  # maximum 4294967200

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Maximum number of files allowed in a BITS job:Nombre maximal de fichiers autorisés dans une tâche BITS :BITS_MaxFilesPerJobListNumeric boxdecimalMaxFilesPerJobREG_DWORD
Required · Max: 4294967200 · Default (UI): 200

Availability