Here’s the correct and complete way to fix a corrupted Windows Component Store on Windows 11.
The Component Store = WinSxS, and when it becomes corrupted, DISM and SFC are the tools to repair it.
Below is the clean repair path that actually works.
Press:
Start → type "cmd" → right-click → Run as administrator
First see the status:
DISM /Online /Cleanup-Image /CheckHealth
If it says corruption might exist, continue.
This scans the component store for issues:
DISM /Online /Cleanup-Image /ScanHealth
This can take 5–10 minutes.
This is the command that actually repairs corruption:
DISM /Online /Cleanup-Image /RestoreHealth
If the corruption is repairable using Windows Update, this should fix it.
Sometimes DISM says:
The source files could not be found.
Then you need to supply a clean source from a Windows ISO.
From Microsoft’s official site → “Download Windows 11 Disk Image (ISO)”.
Double-click the .iso → it appears as a new drive letter, for example:
D:\
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess
If your ISO uses install.esd instead of install.wim:
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.esd /LimitAccess
Once the Component Store is repaired, fix system files:
sfc /scannow
This should finish with:
Windows Resource Protection found no integrity violations or Windows Resource Protection repaired corrupt files
After everything is repaired, run:
Dism.exe /online /cleanup-image /startcomponentcleanup
This removes superseded WinSxS files and reduces corruption chance.
Try these additional fixes:
Run, one line at a time:
net stop wuauserv
net stop cryptsvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptsvc
net start bits
net start msiserver
The strongest fix:
- Run setup.exe from the Windows 11 ISO
- Choose Keep everything
- Let Windows reinstall itself in-place
This fixes every corrupted system file without wiping your PC.
✅ Diagnose specific DISM or SFC errors you’re getting ✅ Tell you whether your corruption is repairable or requires ISO ✅ Generate a one-shot repair script for you
Just send the DISM/SFC output.
When
/cleanup-imageis unknown (error 87), useDISM /Apply-Image /ImageFile:F:\Sources\install.wim /Index:6 /ApplyDir:C: /CompactF: is the drive where I extracted Win11.iso.
/Index:6 is French version (list all languages with:
DISM.exe /Get-WimInfo /WimFile:F:\Sources\install.wim)