Limit the maximum BITS job download time
Limiter le temps de téléchargement maximal pour une tâche BITS
Explanation
This policy setting limits the amount of time that Background Intelligent Transfer Service (BITS) will take to download the files in a BITS job.
The time limit applies only to the time that BITS is actively downloading files. When the cumulative download time exceeds this limit, the job is placed in the error state.
By default BITS uses a maximum download time of 90 days (7,776,000 seconds).
If you enable this policy setting, you can set the maximum job download time to a specified number of seconds.
If you disable or do not configure this policy setting, the default value of 90 days (7,776,000 seconds) will be used.
Ce paramètre de stratégie limite le temps de téléchargement des fichiers utilisés par le service de transfert intelligent en arrière-plan (BITS, Background Intelligent Transfer Service) dans une tâche BITS.
Cette limite s’applique uniquement au temps nécessaire à BITS pour le téléchargement. Lorsque le temps de téléchargement cumulé dépasse cette limite, la tâche indique un état d’erreur.
Par défaut, le service BITS utilise un temps de téléchargement maximal de 90 jours (7 776 000 secondes).
Si vous activez ce paramètre de stratégie, vous pouvez définir le temps de téléchargement maximal de la tâche sur un nombre de secondes spécifié.
Si vous désactivez ce paramètre ou ne le configurez pas, la valeur par défaut de 90 jours (7 776 000 secondes) est utilisée.
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_MaxDownloadTime
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Active Job Timeout in seconds
Set-ItemProperty -Path $k -Name 'MaxDownloadTime' -Value 54000 -Type DWord # between 1 and 2147483648Disable
# Disable: Bits/BITS_MaxDownloadTime
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Bits/BITS_MaxDownloadTime
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
Remove-ItemProperty -Path $k -Name 'MaxDownloadTime' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Active Job Timeout in seconds:Délai d’expiration d’activité de la tâche en secondes :BITS_MaxDownloadSeconds | Numeric boxdecimal | MaxDownloadTime | REG_DWORD | Min: 1 · Max: 2147483648 · Default (UI): 54000 |