Set up a work schedule to limit the maximum network bandwidth used for BITS background transfers
Configurer une planification des tâches pour limiter la bande passante réseau maximale utilisée pour les transferts BITS en arrière-plan
Explanation
This policy setting limits the network bandwidth that Background Intelligent Transfer Service (BITS) uses for background transfers during the work and nonwork days and hours. The work schedule is defined using a weekly calendar, which consists of days of the week and hours of the day. All hours and days that are not defined in a work schedule are considered non-work hours.
If you enable this policy setting, you can set up a schedule for limiting network bandwidth during both work and nonwork hours. After the work schedule is defined, you can set the bandwidth usage limits for each of the three BITS background priority levels: high, normal, and low.
You can specify a limit to use for background jobs during a work schedule. For example, you can limit the network bandwidth of low priority jobs to 128 Kbps from 8:00 A.M. to 5:00 P.M. on Monday through Friday, and then set the limit to 512 Kbps for nonwork hours.
If you disable or do not configure this policy setting, BITS uses all available unused bandwidth for background job transfers.
Ce paramètre de stratégie limite la bande passante réseau maximale utilisée par le service BITS durant les jours et les heures travaillés et non travaillés. La planification des tâches est définie à l’aide d’un calendrier hebdomadaire constitué des jours de la semaine et des heures de la journée. Les heures et les jours non définis dans une planification des tâches sont considérés comme des heures non travaillées.
Si vous activez ce paramètre de stratégie, vous pouvez définir une planification permettant de limiter la bande passante réseau durant les heures travaillées et non travaillées. Une fois la planification des tâches définie, vous pouvez configurer les limites d’utilisation de la bande passante pour chacun des trois niveaux de priorité BITS en arrière-plan : haut, normal et bas.
Vous pouvez spécifier une limite pour les travaux en arrière-plan lors de la planification d’une tâche. Par exemple, vous pouvez limiter la bande passante réseau des tâches de priorité basse à 128 Kbits/s de 8 h 00 à 17 h 00 du lundi au vendredi, puis définir la limite à 512 Kbits/s pour les heures non travaillées.
Si vous désactivez ou ne configurez pas ce paramètre, le service BITS utilise toute la bande passante disponible pour le transfert de tâches en arrière-plan.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\BITS\Throttling- Value name
EnableBandwidthLimits
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | 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.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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_MaxBandwidthV2_Work
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'EnableBandwidthLimits' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Ignore bandwidth limits if the source and the destination are on the same subnet.
# value not defined in the ADMX (the GPO editor usually writes 1/0)
# 1 = checked, 0 = unchecked; default state taken from the ADML
Set-ItemProperty -Path $k -Name 'IgnoreBandwidthLimitsOnLan' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# From
# Possible options:
# Sunday = 0
# Monday = 1
# Tuesday = 2
# Wednesday = 3
# Thursday = 4
# Friday = 5
# Saturday = 6
Set-ItemProperty -Path $k -Name 'StartDay' -Value 1 -Type DWord
# To
# Possible options:
# Sunday = 0
# Monday = 1
# Tuesday = 2
# Wednesday = 3
# Thursday = 4
# Friday = 5
# Saturday = 6
Set-ItemProperty -Path $k -Name 'EndDay' -Value 5 -Type DWord
# From
# Possible options:
# 12 AM = 0; 1 AM = 1; 2 AM = 2; 3 AM = 3; 4 AM = 4; 5 AM = 5; 6 AM = 6; 7 AM = 7; 8 AM = 8
# 9 AM = 9; 10 AM = 10; 11 AM = 11; 12 PM = 12; 1 PM = 13; 2 PM = 14; 3 PM = 15; 4 PM = 16
# 5 PM = 17; 6 PM = 18; 7 PM = 19; 8 PM = 20; 9 PM = 21; 10 PM = 22; 11 PM = 23
Set-ItemProperty -Path $k -Name 'StartHour' -Value 8 -Type DWord
# To
# Possible options:
# 12 AM = 0; 1 AM = 1; 2 AM = 2; 3 AM = 3; 4 AM = 4; 5 AM = 5; 6 AM = 6; 7 AM = 7; 8 AM = 8
# 9 AM = 9; 10 AM = 10; 11 AM = 11; 12 PM = 12; 1 PM = 13; 2 PM = 14; 3 PM = 15; 4 PM = 16
# 5 PM = 17; 6 PM = 18; 7 PM = 19; 8 PM = 20; 9 PM = 21; 10 PM = 22; 11 PM = 23
Set-ItemProperty -Path $k -Name 'EndHour' -Value 17 -Type DWord
# High Priority Limit
Set-ItemProperty -Path $k -Name 'HighBandwidthLimit' -Value 0 -Type DWord # maximum 4294967200
# High Priority Unit
# Possible options:
# Kbps = 1
# Mbps = 2
# Unlimited = 3
Set-ItemProperty -Path $k -Name 'HighBandwidthType' -Value 3 -Type DWord
# Normal Priority Limit
Set-ItemProperty -Path $k -Name 'NormalBandwidthLimit' -Value 0 -Type DWord # maximum 4294967200
# Normal Priority Unit
# Possible options:
# Kbps = 1
# Mbps = 2
# Unlimited = 3
Set-ItemProperty -Path $k -Name 'NormalBandwidthType' -Value 3 -Type DWord
# Low Priority Limit
Set-ItemProperty -Path $k -Name 'LowBandwidthLimit' -Value 0 -Type DWord # maximum 4294967200
# Low Priority Unit
# Possible options:
# Kbps = 1
# Mbps = 2
# Unlimited = 3
Set-ItemProperty -Path $k -Name 'LowBandwidthType' -Value 3 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# High Priority Limit
Set-ItemProperty -Path $k -Name 'HighBandwidthLimit' -Value 0 -Type DWord # maximum 4294967200
# High Priority Unit
# Possible options:
# Kbps = 1
# Mbps = 2
# Unlimited = 3
Set-ItemProperty -Path $k -Name 'HighBandwidthType' -Value 3 -Type DWord
# Normal Priority Limit
Set-ItemProperty -Path $k -Name 'NormalBandwidthLimit' -Value 0 -Type DWord # maximum 4294967200
# Normal Priority Unit
# Possible options:
# Kbps = 1
# Mbps = 2
# Unlimited = 3
Set-ItemProperty -Path $k -Name 'NormalBandwidthType' -Value 3 -Type DWord
# Low Priority Limit
Set-ItemProperty -Path $k -Name 'LowBandwidthLimit' -Value 0 -Type DWord # maximum 4294967200
# Low Priority Unit
# Possible options:
# Kbps = 1
# Mbps = 2
# Unlimited = 3
Set-ItemProperty -Path $k -Name 'LowBandwidthType' -Value 3 -Type DWordDisable
# Disable: Bits/BITS_MaxBandwidthV2_Work
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'EnableBandwidthLimits' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Bits/BITS_MaxBandwidthV2_Work
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling'
Remove-ItemProperty -Path $k -Name 'EnableBandwidthLimits' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'IgnoreBandwidthLimitsOnLan' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule'
Remove-ItemProperty -Path $k -Name 'StartDay' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'EndDay' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'StartHour' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'EndHour' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HighBandwidthLimit' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HighBandwidthType' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NormalBandwidthLimit' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NormalBandwidthType' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LowBandwidthLimit' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LowBandwidthType' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule'
Remove-ItemProperty -Path $k -Name 'HighBandwidthLimit' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HighBandwidthType' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NormalBandwidthLimit' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NormalBandwidthType' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LowBandwidthLimit' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'LowBandwidthType' -ErrorAction SilentlyContinueOptions (17)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ignore bandwidth limits if the source and the destination are on the same subnet.Ignorer les limites de bande passante si la source et la destination se trouvent sur le même sous-réseau.BITS_IgnoreLimitsOnLan | Check boxboolean | IgnoreBandwidthLimitsOnLan | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| FromDeBITS_WorkDaysFrom | Drop-down listenum | StartDayin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #1
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| ToÀBITS_WorkDaysTo | Drop-down listenum | EndDayin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #5
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| FromDeBITS_WorkHoursFrom | Drop-down listenum | StartHourin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #8
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| ToÀBITS_WorkHoursTo | Drop-down listenum | EndHourin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #17
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| High Priority Limit:Limite de priorité haute :BITS_WorkHighPriorityLimit | Numeric boxdecimal | HighBandwidthLimitin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Max: 4294967200 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| High Priority Unit:Unité de priorité haute :BITS_WorkHighPriorityUnit | Drop-down listenum | HighBandwidthTypein Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #2
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Normal Priority Limit:Limite de priorité normale :BITS_WorkNormalPriorityLimit | Numeric boxdecimal | NormalBandwidthLimitin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Max: 4294967200 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Normal Priority Unit:Unité de priorité normale :BITS_WorkNormalPriorityUnit | Drop-down listenum | NormalBandwidthTypein Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #2
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Low Priority Limit:Limite de priorité basse :BITS_WorkLowPriorityLimit | Numeric boxdecimal | LowBandwidthLimitin Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Max: 4294967200 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Low Priority Unit:Unité de priorité basse :BITS_WorkLowPriorityUnit | Drop-down listenum | LowBandwidthTypein Software\Policies\Microsoft\Windows\BITS\Throttling\WorkSchedule | REG_DWORD | Required · Default choice (UI): #2
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| High Priority Limit:Limite de priorité haute :BITS_NonWorkHighPriorityLimit | Numeric boxdecimal | HighBandwidthLimitin Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule | REG_DWORD | Max: 4294967200 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| High Priority Unit:Unité de priorité haute :BITS_NonWorkHighPriorityUnit | Drop-down listenum | HighBandwidthTypein Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule | REG_DWORD | Required · Default choice (UI): #2
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Normal Priority Limit:Limite de priorité normale :BITS_NonWorkNormalPriorityLimit | Numeric boxdecimal | NormalBandwidthLimitin Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule | REG_DWORD | Max: 4294967200 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Normal Priority Unit:Unité de priorité normale :BITS_NonWorkNormalPriorityUnit | Drop-down listenum | NormalBandwidthTypein Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule | REG_DWORD | Required · Default choice (UI): #2
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Low Priority Limit:Limite de priorité basse :BITS_NonWorkLowPriorityLimit | Numeric boxdecimal | LowBandwidthLimitin Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule | REG_DWORD | Max: 4294967200 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Low Priority Unit:Unité de priorité basse :BITS_NonWorkLowPriorityUnit | Drop-down listenum | LowBandwidthTypein Software\Policies\Microsoft\Windows\BITS\Throttling\NonWorkSchedule | REG_DWORD | Required · Default choice (UI): #2
|