Limit the age of files in the BITS Peercache
This policy setting limits the maximum age of files in the Background Intelligent Transfer Service (BITS) peer cache. In order to make the most efficient use of disk
space, by default BITS removes any files in the peer cache that have not been accessed in the past 90 days.
If you enable this policy setting, you can specify in days the maximum age of files in the cache. You can enter a value between 1 and 120 days.
If you disable or do not configure this policy setting, files that have not been accessed for the past 90 days will be removed from the peer cache.
Note: This policy setting has no effect if the "Allow BITS Peercaching" policy setting is disabled or not configured.
At least Windows Vista
We can use Command Prompt to add or delete the registry key(s):
For Enabled, Add the registry key:
REG add "HKLM\Software\Policies\Microsoft\Windows\BITS" /v MaxContentAge /t REG_DWORD /d 90 /f
For Disabled, Delete the registry key:
REG DELETE "HKLM\Software\Policies\Microsoft\Windows\BITS" /v MaxContentAge /f
For Not Configured, Delete the registry key: