Use this when WinSxS looks huge or needs cleanup.
WinSxS
WinSxS (C:\Windows\WinSxS) is the folder holding the component store. It looks huge because of hard links; clean superseded versions safely with DISM /Online /Cleanup-Image /StartComponentCleanup, never by deleting files.
1. Size reported by Explorer overcounts (hard links).
2. Real size: /AnalyzeComponentStore.
3. Cleanup recommended? run /StartComponentCleanup.
4. Never delete files there.
5. Health check.
WinSxS = component store with hard links to system files
Context & applicabilityCommon mistakes · platform/version boundaries
- Deleting WinSxS files manually — breaks updates and features.
- Trusting Explorer's size for WinSxS; hard links make it look larger than it is (use
/AnalyzeComponentStore). /ResetBaseon systems where you may need to uninstall updates.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
Dism /Online /Cleanup-Image /AnalyzeComponentStore
Actual Size of Component Store is the real size after hard links; Reclaimable Packages > 0 means cleanup will help.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Hard links make WinSxS size look larger than real use.
- StartComponentCleanup safely removes superseded versions.
- Never delete WinSxS files by hand.
DISM /Online /Cleanup-Image /CheckHealth— quick corruption flag checkDISM /Online /Cleanup-Image /ScanHealth— full scanDISM /Online /Cleanup-Image /RestoreHealth— repair from Windows Update or /Sourcesfc /scannow— verify/repair system filesGet-Content C:\Windows\Logs\CBS\CBS.log -Tail 50— servicing log
ReferenceWhy it matters1 section · depth on demand
Size and cleanup
DISM /Online /Cleanup-Image /AnalyzeComponentStore
DISM /Online /Cleanup-Image /StartComponentCleanup
Explorer double-counts hard-linked files, so WinSxS looks bigger than it is; AnalyzeComponentStore shows the real size and whether cleanup is recommended. Never delete files from WinSxS manually.
ReferenceImportant terms & boundaries2 sections · depth on demand
Why WinSxS looks big
Most files in WinSxS are hard-linked into C:\Windows\System32 and elsewhere, so Explorer counts them twice. Only superseded versions and backups use extra space, which StartComponentCleanup removes after a grace period (about 30 days by the scheduled task).
In depth
WinSxS appears huge in Explorer because most files are hard-linked into System32 and counted twice. Measure correctly:
Dism /Online /Cleanup-Image /AnalyzeComponentStore
# Actual Size of Component Store, Shared with Windows, Backups and Disabled Features, Cache and Temporary Data
Never delete files from WinSxS manually — it breaks servicing. Reclaim space with component cleanup, removing unused roles/features (Uninstall-WindowsFeature -Remove on servers) and Disk Cleanup's "Windows Update Cleanup".
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DISM & System Repair → WinSxS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/what-is-dism · confidence 94%