WinSxS folder (component store)
WinSxS is the Windows component store, located at C:\Windows\WinSxS. It holds the files Windows needs to install features, apply updates and repair itself. Explorer overstates its size because most files are hard links shared with the Windows folder, and it must never be deleted by hand.
1Why it looks so large
Many files in WinSxS are hard-linked into C:\Windows\System32 and other folders. Explorer counts them twice, so the folder appears bigger than the space it really uses.
DISM can report the real size: Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore shows the actual size of the component store and whether a cleanup is recommended.
2How it is cleaned
Windows cleans superseded components automatically with the StartComponentCleanup scheduled task. You can run the same cleanup manually with Dism.exe /Online /Cleanup-Image /StartComponentCleanup.
Adding /ResetBase removes all superseded versions of every component. After that, updates that are already installed can no longer be uninstalled.
How to check and reduce WinSxS
- Open Terminal (Admin).
- Run:
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore - If 'Component Store Cleanup Recommended' is Yes, run:
Dism.exe /Online /Cleanup-Image /StartComponentCleanup - Only if you are sure you will not need to uninstall current updates:
Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Cautions
- Never delete files from WinSxS manually or change its permissions: Windows Update and repairs can stop working.
- /ResetBase makes installed updates permanent.
Related articles
- DISM (Deployment Image Servicing and Management)What DISM is, the /CheckHealth, /ScanHealth and /RestoreHealth commands, and how DISM and SFC work together to repair Windows.
- SFC (System File Checker)What sfc /scannow does, how to read its results, where the CBS.log is and when to run DISM first.
- Windows.old folderWhat the Windows.old folder is, why it appears after an upgrade, how long Windows keeps it and how to remove it safely.
Sources
- Clean up the WinSxS folder (Microsoft Learn) learn.microsoft.com
- Determine the actual size of the WinSxS folder (Microsoft Learn) learn.microsoft.com
Last reviewed: