How to clean and repair the Windows Component Store

To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker, purchase my 3D plans, or make a donation or subscribe on Ko-Fi. Thank you!

Hello,

The C:\Windows\WinSxS (Windows Side by Side) component shop is used :

  • By Windows update for installing new components.
  • To enable or disable roles or features
  • To move the system between different versions of Windows
  • System recovery from file corruption (SFC uses component shop)
  • Uninstalling problematic updates
  • Running programs using side-by-side assemblies

Commands used in the video

# Show the actual size of WinSxS.
dism /online /cleanup-image /analyzecomponentstore
# This folder should not be deleted but can be cleaned up
dism.exe /online /Cleanup-Image /StartComponentCleanup
# /ResetBase with the /StartComponentCleanup parameter deletes all obsolete versions of each component in WinSxSp.
# Updates can then no longer be uninstalled
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
# Repair WinSxS
# The /ScanHealth argument is used to analyse the image and check whether it is damaged
Dism /Online /Cleanup-Image /ScanHealth
# The /CheckHealth argument is used to determine whether the image is intact, repairable or non-repairable
Dism /Online /Cleanup-Image /CheckHealth
# Repair WinSxS via the internet
Dism /online /cleanup-image /restorehealth
# Repair WinSxS via a WIM file
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim /LimitAccess

Video : How to clean and repair the Windows Component Store

Play

Related links