• CAB files in the Windows Temp folder may be regenerated due to an error in the compression process. They can also accumulate on server PCs in network environments.
  • If you’re wondering whether you can delete CAB files in Windows temporary folders, there are some great third-party tools out there.
  • Users can repair CAB files regenerated in Windows Temp folder in Windows 10 using Command Prompt and batch scripts.
  • Windows also includes some handy built-in utilities for clearing and also stopping CAB files in the Windows Temp folder.

CAB Files Found In Windows Temp Folder

The Windows Temp folder contains a temporary file repository. That folder contains cached data and software startup settings. The CAB-xxxx data files are among the files collected in the Temp folder.

Many CAB files can be collected and regenerated in the Temp folder. This is especially true for server PCs in network environments, which generate a lot of security and log data.

Collecting CAB files can waste a significant amount of hard drive space.

There is also a CAB compressor bug in Windows where the makecab cleanup process does not compress CBS records.

When that problem occurs, rebuilding CAB files can take up all or most of the remaining space on the hard drive. A user said this in a Microsoft forum post:

How can I clear CAB files and fix the compressor bug?

1. Check out PRTG Network Monitor

CAB Files Found In Windows Temp Folder

PRTG Network Monitor is ideal for users who need to monitor CAB files that accumulate on server PCs within network environments.

You can use this powerful software to create an alert to notify you if a server hosting an additional polling engine slows down and to set the node’s warning level.

This will ensure that you always know in time if the CAB files will accumulate in the temporary folder.

PRTG is network monitoring software available for free. That software incorporates VMware, printers, databases, and website monitoring components.

Paessler PRTG also includes WMI free disk space and folder sensor monitors. Those components allow users to configure sensors that monitor disk drives or entire folders.

Folder sensor monitoring can be useful for monitoring the accumulation of CAB files in the Temp folder and the total size of that folder.

Other useful PRTG Network Monitor features

  • Includes over 10 built-in technologies for flexible alerts
  • Your users can use PRTG in browsers or with their desktop application.
  • PRTG Map Designer allows users to configure real-time maps for networks.
  • PRTG removal probes allow users to monitor networks in different locations.

2. Erase CAB files with a CCleaner

CAB Files Found In Windows Temp Folder

To remove large numbers of CAB files, look no further than CCleaner. That is one of the most efficient and comprehensive disk cleaning tools for Windows.

Your users can select the Temporary files check box in CCleaner’s Disk Cleanup utility to quickly clear the Temp folder.

CCleaner includes many other useful system maintenance tools. The users can repair PC registries with CCleaner’s registry cleaner.

This software also has a handy Health Check feature, which is an all-in-one system optimization tool.

Other useful CCleaner features

  • Includes a startup manager to disable startup programs.
  • CCleaner’s Disk Analyzer provides a handy overview of disk storage
  • Users can find and remove duplicate files with CCleaner’s duplicate file erase tool
  • The Browser Plugins tab in CCleaner allows users to enable or disable browser plugins

⇒ Get CCleaner

3. Set up a batch file to delete CAB and LOG files

CAB Files Found In Windows Temp Folder

  1. Press the Windows keyboard and S keys at the same time to open a search box.
  2. Type notepad in the search box.
  3. Then click on Notepad to open that text editor.
  4. Copy the code from the batch file below by pressing the Ctrl and C hotkeys:

              @echo off
              echo Removing archives Temp…
              del /f C:WindowsTemp*.*
              echo Fixing Windows!!!
              del /f C:WindowsLogsCBS*.log
              echo Done!

       5. Paste that batch file into Notepad using the Ctrl + V keyboard shortcut.

CAB Files Found In Windows Temp Folder

6. Click the File > Save As option.

7. Select All files from the Save as type drop-down menu

CAB Files Found In Windows Temp Folder

8. Enter Delete cab files.bat as the file title.
9. Select to save the file to the desktop.
10.Click the Save button to confirm.
11.Right-click the batch file on the desktop and select Run Administrator to start it.

4. Run a Command Prompt script to clear CAB files and fix the compressor bug

  1. Open the Windows search function.
  2. Type cmd in the search box that opens.
  3. Right-click on the Command Prompt utility to select the Run as administrator option.

CAB Files Found In Windows Temp Folder

4. Copy the command prompt script below using the Ctrl + C keyboard shortcut:

      net stop wuauserv
      cd %systemroot%
      rename SoftwareDistribution SoftwareDistribution.old
      rmdir /q /s c:windowstemp
      net stop trustedinstaller
      cd c:windowslogsCBS
      del *.cab
      del *.log
      rem regenerate cab files
      c:windowssystem32wuauclt.exe /detectnow
      net start wuauserv
      echo this is a dummy line

5. Then right-click in the center of the Command Prompt to paste and run the above script. You don’t need to               press the Enter key to launch it.

Note: You can manually apply the same solution by disabling the Windows Module Installer module (via the Services window) and deleting the older Cbspersist_XX.log file in this folder:


After deleting the oldest Cbspersist log file, delete all CAB files from the Windows > Temp folder. Then restart the Windows snap-in installer in the Services window.

5. Turn on Storage Sense

  1. Type Storage Sense in the Windows search box.
  2. Click Enable Storage Sense to open the window below.

CAB Files Found In Windows Temp Folder

3. Click the Configure Storage Phrase option or run it now.

4. Change the Storage direction option to On.
5. Right-click the batch file on the desktop and select Run Administrator to run it.

So this is how you can delete CAB files in Temp folder and solve the compressor error problem by regenerating them to free up disk space.

However, make sure to delete only the CAB files in the Temp folder. Our Free Up Hard Drive Guide offers more tips for cleaning hard drives.

Similar Posts