Ouvrir dans l'explorateur

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é

Set default download behavior for BITS jobs on costed networks

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Service de transfert intelligent en arrière-plan (BITS) EN : Computer Configuration › Policies › Administrative Templates › Network › Background Intelligent Transfer Service (BITS)
Pris en charge sur
Windows 8 ou Windows Server 2012 ou Windows RT ou ordinateurs sur lesquels BITS 5 est installé. EN : Windows 8 or Windows Server 2012 or Windows RT or computers with BITS 5 installed.
Fichier ADMX
Bits.admx
Nom interne
Bits/BITS_SetTransferPolicyOnCostedNetwork

Explication

Texte français issu de Windows 11 26H2

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.

This policy setting defines the default behavior that the Background Intelligent Transfer Service (BITS) uses for background transfers when the system is connected to a costed network (3G, etc.). Download behavior policies further limit the network usage of background transfers.

If you enable this policy setting, you can define a default download policy for each BITS job priority. This setting does not override a download policy explicitly configured by the application that created the BITS job, but does apply to jobs that are created by specifying only a priority.

For example, you can specify that background jobs are by default to transfer only when on uncosted network connections, but foreground jobs should proceed only when not roaming. The values that can be assigned are:
- Always transfer
- Transfer unless roaming
- Transfer unless surcharge applies (when not roaming or overcap)
- Transfer unless nearing limit (when not roaming or nearing cap)
- Transfer only if unconstrained
- Custom--allows you to specify a bitmask, in which the bits describe cost states allowed or disallowed for this priority: (bits described here)
0x1 - The cost is unknown or the connection is unlimited and is considered to be unrestricted of usage charges and capacity constraints.
0x2 - The usage of this connection is unrestricted up to a certain data limit
0x4 - The usage of this connection is unrestricted up to a certain data limit and plan usage is less than 80 percent of the limit.
0x8 - Usage of this connection is unrestricted up to a certain data limit and plan usage is between 80 percent and 100 percent of the limit.
0x10 - Usage of this connection is unrestricted up to a certain data limit, which has been exceeded. Surcharge applied or unknown.
0x20 - Usage of this connection is unrestricted up to a certain data limit, which has been exceeded. No surcharge applies, but speeds are likely reduced.
0x40 - The connection is costed on a per-byte basis.
0x80 - The connection is roaming.
0x80000000 - Ignore congestion.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\BITS\TransferPolicy
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : Bits/BITS_SetTransferPolicyOnCostedNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Premier plan
# Options possibles :
#   Always transfer = 2147483903
#   Transfer unless roaming = 2147483775
#   Transfer unless surcharge applies (when not roaming or overcap) = 2147483759
#   Transfer unless nearing limit (when not roaming or nearing cap) = 2147483751
#   Transfer only if unconstrained = 2147483681
#   Custom = 255 (+ ForegroundTransferPolicy=valeur supprimée)
Set-ItemProperty -Path $k -Name 'ForegroundTransferPolicy' -Value 0x800000FF -Type DWord
# Premier plan (personnalisé)
Set-ItemProperty -Path $k -Name 'ForegroundTransferPolicyCustom' -Value 255 -Type DWord  # maximum 2147483647
# Élevée
# Options possibles :
#   Always transfer = 255
#   Transfer unless roaming = 127
#   Transfer unless surcharge applies (when not roaming or overcap) = 111
#   Transfer unless nearing limit (when not roaming or nearing cap) = 103
#   Transfer only if unconstrained = 33
#   Custom = 255 (+ HighTransferPolicy=valeur supprimée)
Set-ItemProperty -Path $k -Name 'HighTransferPolicy' -Value 255 -Type DWord
# Élevée (personnalisé)
Set-ItemProperty -Path $k -Name 'HighTransferPolicyCustom' -Value 255 -Type DWord  # maximum 2147483647
# Normal
# Options possibles :
#   Always transfer = 255
#   Transfer unless roaming = 127
#   Transfer unless surcharge applies (when not roaming or overcap) = 111
#   Transfer unless nearing limit (when not roaming or nearing cap) = 103
#   Transfer only if unconstrained = 33
#   Custom = 255 (+ NormalTransferPolicy=valeur supprimée)
Set-ItemProperty -Path $k -Name 'NormalTransferPolicy' -Value 255 -Type DWord
# Normal (personnalisé)
Set-ItemProperty -Path $k -Name 'NormalTransferPolicyCustom' -Value 255 -Type DWord  # maximum 2147483647
# Basse
# Options possibles :
#   Always transfer = 255
#   Transfer unless roaming = 127
#   Transfer unless surcharge applies (when not roaming or overcap) = 111
#   Transfer unless nearing limit (when not roaming or nearing cap) = 103
#   Transfer only if unconstrained = 33
#   Custom = 255 (+ LowTransferPolicy=valeur supprimée)
Set-ItemProperty -Path $k -Name 'LowTransferPolicy' -Value 255 -Type DWord
# Basse (personnalisé)
Set-ItemProperty -Path $k -Name 'LowTransferPolicyCustom' -Value 255 -Type DWord  # maximum 2147483647

Désactiver

# Désactiver : Bits/BITS_SetTransferPolicyOnCostedNetwork
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : Bits/BITS_SetTransferPolicyOnCostedNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\TransferPolicy'
Remove-ItemProperty -Path $k -Name 'ForegroundTransferPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ForegroundTransferPolicyCustom' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HighTransferPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HighTransferPolicyCustom' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NormalTransferPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NormalTransferPolicyCustom' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LowTransferPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LowTransferPolicyCustom' -ErrorAction SilentlyContinue

Options (8)

LibelléContrôleValeur de registreType REGContraintes / détails
Premier planForegroundBITS_TransferPolicyForegroundPriorityValueListe déroulanteenumForegroundTransferPolicyREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
Always transferREG_DWORD = 2147483903
Transfer unless roamingREG_DWORD = 2147483775
Transfer unless surcharge applies (when not roaming or overcap)REG_DWORD = 2147483759
Transfer unless nearing limit (when not roaming or nearing cap)REG_DWORD = 2147483751
Transfer only if unconstrainedREG_DWORD = 2147483681
CustomREG_DWORD = 255
Software\Policies\Microsoft\Windows\BITS\TransferPolicy › ForegroundTransferPolicy : Supprime la valeur
Premier plan (personnalisé)Foreground (Custom)BITS_TransferPolicyForegroundPriorityValueCustomZone numériquedecimalForegroundTransferPolicyCustomREG_DWORD
Max : 2147483647 · Défaut (interface) : 255
ÉlevéeHighBITS_TransferPolicyHighPriorityValueListe déroulanteenumHighTransferPolicyREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
Always transferREG_DWORD = 255
Transfer unless roamingREG_DWORD = 127
Transfer unless surcharge applies (when not roaming or overcap)REG_DWORD = 111
Transfer unless nearing limit (when not roaming or nearing cap)REG_DWORD = 103
Transfer only if unconstrainedREG_DWORD = 33
CustomREG_DWORD = 255
Software\Policies\Microsoft\Windows\BITS\TransferPolicy › HighTransferPolicy : Supprime la valeur
Élevée (personnalisé)High (Custom)BITS_TransferPolicyHighPriorityValueCustomZone numériquedecimalHighTransferPolicyCustomREG_DWORD
Max : 2147483647 · Défaut (interface) : 255
NormalBITS_TransferPolicyNormalPriorityValueListe déroulanteenumNormalTransferPolicyREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
Always transferREG_DWORD = 255
Transfer unless roamingREG_DWORD = 127
Transfer unless surcharge applies (when not roaming or overcap)REG_DWORD = 111
Transfer unless nearing limit (when not roaming or nearing cap)REG_DWORD = 103
Transfer only if unconstrainedREG_DWORD = 33
CustomREG_DWORD = 255
Software\Policies\Microsoft\Windows\BITS\TransferPolicy › NormalTransferPolicy : Supprime la valeur
Normal (personnalisé)Normal (Custom)BITS_TransferPolicyNormalPriorityValueCustomZone numériquedecimalNormalTransferPolicyCustomREG_DWORD
Max : 2147483647 · Défaut (interface) : 255
BasseLowBITS_TransferPolicyLowPriorityValueListe déroulanteenumLowTransferPolicyREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
Always transferREG_DWORD = 255
Transfer unless roamingREG_DWORD = 127
Transfer unless surcharge applies (when not roaming or overcap)REG_DWORD = 111
Transfer unless nearing limit (when not roaming or nearing cap)REG_DWORD = 103
Transfer only if unconstrainedREG_DWORD = 33
CustomREG_DWORD = 255
Software\Policies\Microsoft\Windows\BITS\TransferPolicy › LowTransferPolicy : Supprime la valeur
Basse (personnalisé)Low (Custom)BITS_TransferPolicyLowPriorityValueCustomZone numériquedecimalLowTransferPolicyCustomREG_DWORD
Max : 2147483647 · Défaut (interface) : 255

Disponibilité