Description:
This policy setting limits the network bandwidth that Background Intelligent Transfer Service (BITS) uses for
background transfers during the maintenance days and hours. Maintenance schedules further limit the
network bandwidth that is used for background transfers.
If you enable this setting, then you can define a separate set of network bandwidth limits and set up a
schedule for the maintenance period.
You can specify a limit to use for background jobs during a maintenance schedule. For example, if
normal priority jobs are currently limited to 256 Kbps on a work schedule, then you can further limit the
network bandwidth of normal priority jobs to 0 Kbps from 8:00 A.M. to 10:00 A.M. on a maintenance schedule.
If you disable or do not configure this policy setting, then the limits defined for work and/or non-work
schedules will be used.
Note: The bandwidth limits that are set for the maintenance period supersede any limits defined for
work and other schedules.
Supported on: Windows 7 or computers with BITS 3.5 installed.
VBScript:
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath1 = "SOFTWARE\Policies\Microsoft\Windows\BITS\Throttling"
strKeyPath2 = "SOFTWARE\Policies\Microsoft\Windows\BITS\Throttling\MaintenanceSchedule"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath1
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath2
strValueName1 = "EnableMaintenanceLimits"
strValueName2 = "EndDay"
strValueName3 = "EndHour"
strValueName4 = "HighBandwidthLimit"
strValueName5 = "HighBandwidthType"
strValueName6 = "LowBandwidthLimit"
strValueName7 = "LowBandwidthType"
strValueName8 = "NormalBandwidthLimit"
strValueName9 = "NormalBandwidthType"
strValueName10 = "StartDay"
strValueName11 = "StartHour"
'Enabled
dwValue1 = 1
dwValue2 = 5
dwValue3 = 22
dwValue4 = 0
dwValue5 = 3
dwValue6 = 0
dwValue7 = 3
dwValue8 = 0
dwValue9 = 3
dwValue10 = 1
dwValue11 = 20
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName1,dwValue1
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName2,dwValue2
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName3,dwValue3
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName4,dwValue4
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName5,dwValue5
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName6,dwValue6
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName7,dwValue7
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName8,dwValue8
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName9,dwValue9
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName10,dwValue10
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName11,dwValue11
'Not Configured/Disabled
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName1
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName2
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName3
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName4
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName5
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName6
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName7
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName8
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName9
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName10
'oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName11