Timeout for inactive BITS jobs
Délai pour les tâches BITS inactives
Explanation
This policy setting specifies the number of days a pending BITS job can remain inactive before the job is considered abandoned. By default BITS will wait 90 days before considering an inactive job abandoned. After a job is determined to be abandoned, the job is deleted from BITS and any downloaded files for the job are deleted from the disk.
Note: Any property changes to the job or any successful download action will reset this timeout.
Consider increasing the timeout value if computers tend to stay offline for a long period of time and still have pending jobs.
Consider decreasing this value if you are concerned about orphaned jobs occupying disk space.
If you enable this policy setting, you can configure the inactive job timeout to specified number of days.
If you disable or do not configure this policy setting, the default value of 90 (days) will be used for the inactive job timeout.
Ce paramètre de stratégie indique le nombre de jours pendant lesquels une tâche BITS en attente peut rester inactive avant d’être considérée comme abandonnée. Par défaut, le service BITS attend 90 jours avant de considérer une tâche inactive comme abandonnée. Une fois l’abandon d’une tâche confirmé, celle-ci est supprimée de BITS et les fichiers téléchargés relatifs à cette tâche sont supprimés du disque.
Remarque : toute modification des propriétés de la tâche ou tout téléchargement réussi entraîne la réinitialisation de ce délai d’expiration.
Vous pouvez augmenter cette valeur si les ordinateurs ont tendance à rester hors connexion trop longtemps et ont toujours des tâches en attente.
Vous pouvez diminuer cette valeur si vous êtes préoccupé par les tâches orphelines occupant de l’espace disque.
Si vous activez ce paramètre de stratégie, vous pouvez configurer le délai d’expiration de la tâche inactive en indiquant le nombre de jours spécifié.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la valeur par défaut de 90 (jours) est utilisée pour le délai d’expiration de la tâche inactive.
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_Job_Timeout
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Inactive Job Timeout in Days
Set-ItemProperty -Path $k -Name 'JobInactivityTimeout' -Value 90 -Type DWord # between 1 and 999Disable
# Disable: Bits/BITS_Job_Timeout
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Bits/BITS_Job_Timeout
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS'
Remove-ItemProperty -Path $k -Name 'JobInactivityTimeout' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Inactive Job Timeout in Days:Délai d’expiration d’inactivité de la tâche en jours :BITS_Job_Timeout_Time | Numeric boxdecimal | JobInactivityTimeout | REG_DWORD | Min: 1 · Max: 999 · Default (UI): 90 |