Windows Temp Directory / CAB Files Causing Disk Space Issue


Large amount of space used by the Windows Temp directory. 

Specifically it seems a log file under `C:\windows\Logs\CBS` becomes corrupt, after which small but numerous `cab_xxxx` files start to appear in the `C:\windows\temp` directory.

Incident Resolution: 

The incident is easily fixed:

- Delete the largest/oldest log file from `C:\windows\Logs\CBS`

- Delete all `cab_xxxx` files from the `C:\windows\temp`

(some posts suggest stopping & starting the windows update service / regenerating the cab files after performing the above).

Problem Prevention:

NB: It seems that the root cause is known: makecab.exe utility cannot handle files over 2GB.

However, I've seen nothing on how to prevent this in the first place.

Question: Is there a hotfix to correct this bug?  If not, is there anything in the pipeline?

Additional Info:

Other resources relating to this issue on the web provide additional insights:





Thanks in advance.

ive been having this prob with various machines lately..

i thought id help out since microsoft doesnt seem to be home lol

heres what i found

i see this everywhere and i suspect this works for a while until some cab file gets to 2gb

Step 1. Stop the Windows Modules Installer service. 
Click Start and in the Search box type


Press Enter and you see the Local Services list.

Step 2. Scroll down to the Windows Modules Installer
service and double-click on it.

Step 3. Under Service status, click Stop. Click OK.

Step 4. Use File Explorer to go to C:\Windows\Logs\CBS

Step 5. Move or rename all of the files in that folder.

Step 6. delete all the "cab*" files in C:\Windows\Temp.

Step 7. Reboot.

now what im really looking for is a permanent fix and i ran across this

not sure if it works or what the side effects are but heres the guys entire post

cbs.log bloat can be limited with registry tweak

cbs.log always NTFS compressed

the number of cabbed logs, setting to 0 eliminate them (not created)

and if you want to get rid of cbs.log completely (not created), change EnableLog to 0 in
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionComponent Based Servicing]
require taking permissions ownership

later he goes on to say only the reg key at the bottom works on win7

this is the best ive found, if anyone finds something better (like a KB :)... post it below


Discussion Info

Last updated August 3, 2020 Views 16,646 Applies to: