W Windows Clean

CBS Log Folder Filling Your C Drive? Safe Fix

GuidesNovember 29, 2026 · 2 min read

If the CBS log is filling your C drive, stop the Windows Modules Installer service, move the large old logs out of C:\Windows\Logs\CBS, and restart your PC. Then find out why the logs grew, or they may return.

What is the CBS log folder?

CBS means Component-Based Servicing. It records work done on Windows components, including updates, System File Checker (SFC) repairs and DISM cleanup. These records help when you troubleshoot a problem.

Why is the CBS log filling your C drive?

The active file is CBS.log. Windows renames it to CbsPersist_date.log as it grows, then compresses it into a .cab file. Dell's support article explains that compression can fail. Failed attempts can leave more large files in C:\Windows\Temp.

Check the size first

Open PowerShell as administrator and run this read-only command:

Get-ChildItem C:\Windows\Logs\CBS -File |
  Sort-Object Length -Descending |
  Select-Object Name, @{n='SizeGB';e={[math]::Round($_.Length/1GB,2)}}

Small log files are normal. Act when the folder uses several gigabytes or keeps growing. A scan with Windows Clean can also show whether this folder is really your biggest problem.

How to clear a large CBS log safely

You need administrator rights. Moving logs to another drive is safer than deleting them, because you can still read them later. The example uses drive D.

  1. Stop the service:
Stop-Service TrustedInstaller
  1. Move the old logs:
New-Item -ItemType Directory D:\CBS-backup -Force
Move-Item C:\Windows\Logs\CBS\CbsPersist_* D:\CBS-backup
  1. If CBS.log itself is huge, move it too. Never delete the CBS folder.
  2. Open C:\Windows\Temp and remove the large .cab files left by failed compression.
  3. Restart your PC, then check the folder size again.

If Windows is installing an update, let it finish before you start. If a file is in use, restart and try again instead of forcing it.

If the logs come back

Repeated growth can point to a failing update or damaged system files. Check Settings > Windows Update > Update history for errors. Then run these commands in an administrator terminal, one at a time:

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Both commands write to the CBS log, so some new entries are expected. For update leftovers, see how to clean Windows Update files. You can also delete temporary files safely or follow the C drive full checklist.

CBS log FAQ

Can I delete CBS.log? You can remove it after stopping the service. Keep a copy if you are troubleshooting an update.

Why does Windows say the file is open? The Windows Modules Installer service is probably using it. Stop the service or restart the PC.

Should I disable the service permanently? No. Windows needs it to install updates and optional components.

See what's taking up your disk space

Windows Clean is a free, offline disk space analyzer for Windows. No cloud, no telemetry.

Download for Windows — Free