> ## Content Index
> Fetch the complete content index at: https://winerror-repair.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# DISM StartComponentCleanup: Check Space and ResetBase
- URL: https://winerror-repair.org/dism-startcomponentcleanup/
- Published: 2026-11-22T08:20:22.000Z
- Updated: 2026-11-22T08:20:22.000Z
- Description: Measure the component store, run supported cleanup when recommended and recheck the result. Understand ResetBase before losing update-removal options.
- Author: Daniel Hayes
- Tags: Windows system file repair

`DISM.exe /Online /Cleanup-Image /StartComponentCleanup` removes superseded Windows components to reduce the component store's size. Run `/AnalyzeComponentStore` first to check whether cleanup is recommended. Leave `/ResetBase` off a routine cleanup: adding it prevents you from uninstalling update packages already installed when that operation completes.

I'd measure the store before removing anything. A large `C:\Windows\WinSxS` folder in File Explorer doesn't tell you how much space cleanup can recover, and component cleanup isn't a substitute for repairing a failed Windows update. Don't delete WinSxS files manually.

## Check that cleanup is the operation you need

Use this route from the Windows desktop you're trying to clean. Microsoft's [DISM global options](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-global-options-for-command-line-syntax?view=windows-11&ref=winerror-repair.org) define `/Online` as the currently running operating system. It doesn't mean "download from the internet." An offline Windows image in recovery needs a separately identified target.

Save your work and keep a current backup. Let any active update or servicing operation finish, then complete a requested normal restart before starting cleanup. Don't launch this command alongside an unfinished DISM repair. On a managed PC, have IT approve servicing and any change that reduces update-removal options.

| Your task                                             | Use the matching operation                                                                                                                                                           |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Check component-store size and cleanup eligibility    | /AnalyzeComponentStore creates the report.                                                                                                                                           |
| Remove superseded components                          | /StartComponentCleanup performs supported component cleanup.                                                                                                                         |
| Investigate component corruption                      | /CheckHealth checks recorded health flags; /ScanHealth scans for corruption. /RestoreHealth scans and repairs.                                                                       |
| A Disk Cleanup dialog is stuck calculating a category | Use the [Disk Cleanup scan and Storage checks](https://winerror-repair.org/disk-cleanup-stuck-language-resource-files/). The category label doesn't select a component-store repair. |

Microsoft documents these separate actions in its [Cleanup-Image options](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-operating-system-package-servicing-command-line-options?view=windows-11&ref=winerror-repair.org#cleanup-image). Sharing the `/Cleanup-Image` prefix doesn't make every command a disk cleanup or a corruption repair.

## Analyze the component store before cleaning it

1. Search Start for **Command Prompt**.
2. Select **Run as administrator** and approve the prompt with authorized administrator access.
3. Enter the analysis command below and wait for its final result. Keep the report for comparison after cleanup.

```
DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore
```

[![Administrator Command Prompt with the AnalyzeComponentStore command entered before execution.](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/component-cleanup-console-ui.webp)](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/component-cleanup-console-ui.webp?ref=winerror-repair.org)

Enter AnalyzeComponentStore in the administrator console before choosing a cleanup. The command is shown before execution; read your own report for the result. Select the image to enlarge the line.

Microsoft's [component-store size explanation](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/determine-the-actual-size-of-the-winsxs-folder?view=windows-11&ref=winerror-repair.org) distinguishes the fields that matter:

- **Windows Explorer Reported Size:** doesn't account for hard links, so it can overstate the folder's footprint.
- **Actual Size of Component Store:** accounts for hard links but still includes files shared with Windows.
- **Shared with Windows:** files used for normal Windows operation. That amount isn't component-store overhead you can simply delete.
- **Backups and Disabled Features** plus **Cache and Temporary Data:** make up the reported component-store overhead. The whole amount isn't a promised cleanup saving.
- **Number of Reclaimable Packages** and **Component Store Cleanup Recommended:** show the superseded-package count and whether cleanup may reduce overhead.

If the report says cleanup isn't recommended and no eligible packages are reported, stop this cleanup route. Use another appropriate storage category if you still need space. An analysis error or missing report isn't the same as a successful report saying **No**; save the exact failure for the error checks below.

## Run the supported cleanup without adding ResetBase

When the analysis recommends cleanup and you're ready to remove the superseded components, run this command in the administrator console:

```
DISM.exe /Online /Cleanup-Image /StartComponentCleanup
```

Wait for the final message and keep it. Microsoft's [supported WinSxS cleanup procedure](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder?view=windows-11&ref=winerror-repair.org) says this direct DISM route deletes previous versions of updated components immediately, without the automatic task's 30-day grace period. Cleanup removes old component versions; don't use it while you're still evaluating a problematic update and need its recovery options reviewed.

Use the final success or error text to identify completion, rather than requiring the progress line to end at a particular percentage. A window still processing is different from a command that has returned its final result.

Windows also has a **StartComponentCleanup** task under **Task Scheduler Library > Microsoft > Windows > Servicing**. The automatically run task waits at least 30 days after an updated component is installed before removing its previous version. Microsoft documents a one-hour timeout when you run the task, so it may leave eligible work unfinished. Direct DISM cleanup doesn't have that one-hour timeout.

Choose one route. The task's timeout isn't a deadline for the direct DISM command, and running both at once doesn't establish a better result. Windows already performs component cleanup automatically; an Explorer folder total alone doesn't justify repeatedly forcing maintenance.

## Understand ResetBase before sacrificing update removal

`/ResetBase` is an additional choice, not a required second cleanup step. Used with `/StartComponentCleanup`, it removes all superseded versions of every component in the store. Microsoft's warning is explicit: existing update packages can't be uninstalled after completion. That restriction doesn't block uninstalling future update packages.

I'd leave that switch out when the goal is ordinary space recovery. An administrator considering it should first confirm update stability, the recovery plan and acceptance of the uninstall restriction. A backup doesn't make the usual update-uninstall button work after ResetBase; restoring a system backup is a separate recovery operation. Don't add `/Defer` from a factory-deployment example as a home-PC cleanup fix either.

Plain StartComponentCleanup also removes older component versions immediately. Leaving ResetBase off avoids its broader existing-update restriction; it doesn't mean every superseded file remains available indefinitely. Don't delete `pending.xml`, take ownership of WinSxS or remove individual packages to force a smaller total.

## Compare the report instead of expecting a fixed saving

After cleanup finishes, complete a normal restart if Windows requests one, then run `/AnalyzeComponentStore` again. Compare **Actual Size**, the overhead categories, reclaimable packages and the recommendation with the saved report. Check free space on the same system drive as well. Other disk activity can affect that total, so a component-store change need not equal the net increase in drive free space.

In [Ed Tittel's June 2022 cleanup example](http://www.edtittel.com/blog/dism-component-store-cleanup.html?ref=winerror-repair.org), the author reported a reduction of 1.72 GB in Explorer-reported size and 1.47 GB in actual component-store size after cleaning two reclaimable packages. That's one published result, not an expected saving for your PC. The useful comparison is the same report before and after your own run.

A [Windows 10 20H2 community report](https://learn.microsoft.com/en-us/answers/questions/3801682/dism-exe-online-cleanup-image-startcomponentcleanu?ref=winerror-repair.org) describes cleanup ending successfully while two reclaimable packages and a cleanup recommendation remained. The thread doesn't establish why they remained or document a successful fix. Don't jump from a nonzero count to ResetBase or reinstall Windows. Keep the before-and-after reports and the final cleanup message for support if the result stays unexplained.

## Use the actual error or progress state for the next step

If the command is still running, keep power connected and review current servicing activity before interrupting it. The [DISM progress and log-observation checks](https://winerror-repair.org/windows-11-dism-stuck-at-62-3/) explain how to distinguish the repair window from a separate log watcher. Record that your active operation is `/StartComponentCleanup`; a RestoreHealth percentage isn't a diagnosis of this run. Don't kill TiWorker or TrustedInstaller to enforce a time estimate from another PC.

If cleanup ends with an error, save the full command, final code and the log location printed by DISM. The [default DISM log](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-global-options-for-command-line-syntax?view=windows-11&ref=winerror-repair.org#logpath-path-to-log-filelog) is `%WINDIR%\Logs\DISM\dism.log`. Keep the matching attempt's time and relevant CBS entries; an unrelated older warning doesn't explain the current failure.

- **Error 2:** use the [target, source and missing-file checks](https://winerror-repair.org/dism-error-2/) with the cleanup command you actually ran.
- **Error 1726:** follow the [DISM RPC-call failure investigation](https://winerror-repair.org/dism-error-1726/). A successful health scan doesn't turn a failed cleanup into success.
- **Another final error or repeated unexplained results:** give support the Windows build, command, before-and-after analysis, final message and matching log excerpt. Remove account names and private paths from a copy before public sharing.

Cleanup has met its purpose when the supported operation completes and the resulting space is sufficient for your task. If the original problem was an update failure, verify that update separately. The [Windows system repair hub](https://winerror-repair.org/tag/system-repair/) groups the narrower servicing and recovery routes.