Set Business Hours to Limit Background Download Bandwidth
Définir les heures d'ouverture pour limiter la bande passante de téléchargement en arrière-plan
Explanation
Specifies the maximum background download bandwidth that Delivery Optimization uses during and outside business hours across all concurrent download activities as a percentage of available download bandwidth.
Spécifie la bande passante de téléchargement en arrière-plan maximale utilisée par l'Optimisation de la distribution pendant et en dehors des heures d'ouverture pour toutes les activités de téléchargement simultanées en pourcentage de la bande passante de téléchargement disponible.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization- 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: DeliveryOptimization/SetHoursToLimitBackgroundDownloadBandwidth
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# 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 'DOSetHoursToLimitBackgroundDownloadBandwidth_From' -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 'DOSetHoursToLimitBackgroundDownloadBandwidth_To' -Value 17 -Type DWord
#
Set-ItemProperty -Path $k -Name 'DOSetHoursToLimitBackgroundDownloadBandwidth_In' -Value 0 -Type DWord # between 0 and 100
#
Set-ItemProperty -Path $k -Name 'DOSetHoursToLimitBackgroundDownloadBandwidth_Out' -Value 0 -Type DWord # between 0 and 100Disable
# Disable: DeliveryOptimization/SetHoursToLimitBackgroundDownloadBandwidth
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": DeliveryOptimization/SetHoursToLimitBackgroundDownloadBandwidth
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization'
Remove-ItemProperty -Path $k -Name 'DOSetHoursToLimitBackgroundDownloadBandwidth_From' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DOSetHoursToLimitBackgroundDownloadBandwidth_To' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DOSetHoursToLimitBackgroundDownloadBandwidth_In' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DOSetHoursToLimitBackgroundDownloadBandwidth_Out' -ErrorAction SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| From:De :SetHoursToLimitBackgroundDownloadBandwidthFrom | Drop-down listenum | DOSetHoursToLimitBackgroundDownloadBandwidth_From | REG_DWORD | Required · Default choice (UI): #8
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| To:À :SetHoursToLimitBackgroundDownloadBandwidthTo | Drop-down listenum | DOSetHoursToLimitBackgroundDownloadBandwidth_To | REG_DWORD | Required · Default choice (UI): #17
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| SetHoursToLimitBackgroundDownloadBandwidthIn | Numeric boxdecimal | DOSetHoursToLimitBackgroundDownloadBandwidth_In | REG_DWORD | Min: 0 · Max: 100 · Default (UI): 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| SetHoursToLimitBackgroundDownloadBandwidthOut | Numeric boxdecimal | DOSetHoursToLimitBackgroundDownloadBandwidth_Out | REG_DWORD | Min: 0 · Max: 100 · Default (UI): 0 |