Windows\Temp large amounts of cab_XXXX files

Solution 1:

I had a similar issue a while ago, this helped to identify the cause. This is the bit with the fix.

in C:\windows\Logs\CBS folder delete the oldest .log file (you can also delete them all) in C:\windows\temp folder delete every cab_xxxx in the following regeneration process, the remaining (CBS) logs where zipped correctly, and C:\windows\temp was left clean

Solution 2:

The 2GiB Limit Still Haunts Us

I've seen this happen on 64-bit Windows 7 and (as of today) Windows 2008 R2 systems.

Even on 64-bit Windows, the makecab.exe utility breaks on large (2GiB+) files, because the Cabinet file format cannot store files larger than 2GiB..


If any log file in C:\Windows\Logs\CBS grows too big, it breaks the log compression process:

  • The big CBS log file is never compressed
  • Newer CBS log files are never compressed
  • C:\Windows\Temp fills up with corrupt Cabinet files

The corrupt Cabinet files consume about 200MiB+ per day, and cannot be cleared by rebooting.

Unfortunately, you must manually delete the big CBS log file and remove the corrupt cabinet files.


This was an design flaw in Windows 7 that could have been avoided by either:

  • splitting large CBS log files before attempting to compress them, or
  • replacing the Cabinet file format with a more capable format

At any rate, the failure mode of consume all available disk space is a severe oversight.


Solution 3:

C:\Windows\Temp is a folder commonly used by windows updates, logs or temporary files. During an installation, the application moves the caps files to a temporary folder, In this case C:\Windows\Temp

If you want to free some space, you can delete everything on this folder, My suggestion is delete just the old ones, but keep the most recently files (a month ago).

If you're looking to free some space, you can use TreeSize Free tool or WinDirStat tool. Both are free.