Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
Vérifié avec Windows 11 25H2 — mis à jour le 30 juillet 2026
Pris en charge sur : Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
Chemin dans la console GPO
Configuration ordinateur\Modèles d'administration\Réseau\Service de transfert intelligent en arrière-plan (BITS) Description
Ce paramètre de stratégie définit le comportement par défaut utilisé par le service BITS pour les transferts en arrière-plan lorsque le système est connecté à un réseau dont le coût est estimé (3G, etc.). Les stratégies de comportement de téléchargement limitent encore davantage l’utilisation du réseau par les transferts en arrière-plan. Si vous activez ce paramètre de stratégie, vous pouvez définir une stratégie de téléchargement par défaut pour chaque priorité de tâche BITS. Ce paramètre ne remplace pas une stratégie de téléchargement explicitement configurée par l’application qui a créé la tâche BITS, mais s’applique aux tâches créées en spécifiant une priorité uniquement. Par exemple, vous pouvez spécifier que, par défaut, les tâches en arrière-plan sont transférées uniquement via des connexions réseau dont le coût est estimé et que les tâches au premier plan doivent se poursuivre uniquement si elles ne sont pas itinérantes Les valeurs suivantes peuvent être attribuées : - Toujours transférer - Transférer si elles ne sont pas itinérantes - Transférer à moins qu’un surcoût ne s’applique (sans itinérance ou surcapacité) - Transférer sauf à l’approche de la limite (sans itinérance ou à l’approche de la surcapacité) - Transférer uniquement en l’absence de contrainte - Personnalisé : permet de spécifier un masque de bits, dans lequel les bits décrivent les états de coût autorisés ou non autorisés pour cette priorité : (bits décrits ici) 0x1 : le coût est inconnu ou la connexion est illimitée et considérée comme non restreinte par des frais d’utilisation et des contraintes de capacité. 0x2 : l’utilisation de cette connexion est illimitée jusqu’à une certaine limite de données. 0x4 : l’utilisation de cette connexion est illimitée jusqu’à une certaine limite de données et l’utilisation prévue représente moins de 80 pour cent de la limite. 0x8 : l’utilisation de cette connexion est illimitée jusqu’à une certaine limite de données et l’utilisation prévue représente entre 80 et 100 pour cent de la limite. 0x10 : l’utilisation de cette connexion est illimitée jusqu’à une certaine limite de données, laquelle a été dépassée. Surcoût appliqué ou inconnu. 0x20 : l’utilisation de cette connexion est illimitée jusqu’à une certaine limite de données, laquelle a été dépassée. Aucun surcoût n’est appliqué, mais les vitesses sont probablement réduites. 0x40 : le coût de la connexion est estimé par octet. 0x80 : la connexion est itinérante. 0x80000000 : ignorer les congestions.
Registre
Software\Policies\Microsoft\Windows\BITS\TransferPolicy MDM / Intune (CSP)
./Device/Vendor/MSFT/Policy/Config/BITS/CostedNetworkBehaviorBackgroundPriority Plusieurs correspondances CSP possibles ; la première a été retenue.
Documentation Microsoft Learn Données de correspondance : Microsoft Learn (CC BY 4.0)
Valeurs CSP
-
1 (Default)- Always transfer. -
2- Transfer unless roaming. -
3- Transfer unless surcharge applies (when not roaming or over cap). -
4- Transfer unless nearing limit (when not roaming or nearing cap). -
5- Transfer only if unconstrained.
Générateur d'exports
BETAConfigurez l'état, la portée et les options, puis générez les sorties .reg, PowerShell, Intune et SCCM — ou ajoutez le paramètre à une collection multi-paramètres.
Ces exports écrivent le registre — ce n'est pas une GPO managée. ⓘ
Fichier .reg
Windows Registry Editor Version 5.00
; Exported from gporais.com
; Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
; State: Enabled
; Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\BITS\TransferPolicy]
"ForegroundTransferPolicy"=dword:800000ff
"ForegroundTransferPolicyCustom"=dword:000000ff
"HighTransferPolicy"=dword:000000ff
"HighTransferPolicyCustom"=dword:000000ff
"NormalTransferPolicy"=dword:000000ff
"NormalTransferPolicyCustom"=dword:000000ff
"LowTransferPolicy"=dword:000000ff
"LowTransferPolicyCustom"=dword:000000ff Autres formats (PowerShell, Intune, SCCM)
PowerShell
# Exported from gporais.com
# Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
# State: Enabled
# Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
$path = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ForegroundTransferPolicy' -Value 2147483903 -Type DWord
Set-ItemProperty -Path $path -Name 'ForegroundTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'HighTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'HighTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'NormalTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'NormalTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'LowTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'LowTransferPolicyCustom' -Value 255 -Type DWord Intune XML
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/BITS/CostedNetworkBehaviorBackgroundPriority
Data type: String
Value:
<enabled/>
<data id="BITS_TransferPolicyForegroundPriorityValue" value="2147483903"/>
<data id="BITS_TransferPolicyForegroundPriorityValueCustom" value="255"/>
<data id="BITS_TransferPolicyHighPriorityValue" value="255"/>
<data id="BITS_TransferPolicyHighPriorityValueCustom" value="255"/>
<data id="BITS_TransferPolicyNormalPriorityValue" value="255"/>
<data id="BITS_TransferPolicyNormalPriorityValueCustom" value="255"/>
<data id="BITS_TransferPolicyLowPriorityValue" value="255"/>
<data id="BITS_TransferPolicyLowPriorityValueCustom" value="255"/> Intune Remediation
# === Detection script ===
# Exported from gporais.com
# Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
# State: Enabled
# Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'ForegroundTransferPolicy' -Expected 2147483903 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'ForegroundTransferPolicyCustom' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'HighTransferPolicy' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'HighTransferPolicyCustom' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'NormalTransferPolicy' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'NormalTransferPolicyCustom' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'LowTransferPolicy' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'LowTransferPolicyCustom' -Expected 255 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
# State: Enabled
# Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
$path = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ForegroundTransferPolicy' -Value 2147483903 -Type DWord
Set-ItemProperty -Path $path -Name 'ForegroundTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'HighTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'HighTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'NormalTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'NormalTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'LowTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'LowTransferPolicyCustom' -Value 255 -Type DWord Scripts SCCM
# Exported from gporais.com
# Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
# State: Enabled
# Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
# SCCM Configuration Item guidance:
# Create a Configuration Item of type "Setting: Script".
# Discovery script: use the Detection script below.
# Remediation script: use the Remediation script below.
# Compliance rule: the Discovery script output equals 'Compliant'.
# === Detection script ===
# Exported from gporais.com
# Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
# State: Enabled
# Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'ForegroundTransferPolicy' -Expected 2147483903 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'ForegroundTransferPolicyCustom' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'HighTransferPolicy' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'HighTransferPolicyCustom' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'NormalTransferPolicy' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'NormalTransferPolicyCustom' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'LowTransferPolicy' -Expected 255 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy' -Name 'LowTransferPolicyCustom' -Expected 255 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Définir le comportement de téléchargement par défaut des tâches BITS sur des réseaux dont le coût est estimé
# State: Enabled
# Supported on: Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé.
$path = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ForegroundTransferPolicy' -Value 2147483903 -Type DWord
Set-ItemProperty -Path $path -Name 'ForegroundTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'HighTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'HighTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'NormalTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'NormalTransferPolicyCustom' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'LowTransferPolicy' -Value 255 -Type DWord
Set-ItemProperty -Path $path -Name 'LowTransferPolicyCustom' -Value 255 -Type DWord Vous construisez une collection multi-paramètres ? Ajoutez ce paramètre et générez des exports combinés (.reg, PowerShell, GPO).