Pcornel
Windows · DISM & System Repair

WinSxS

Cheat sheet · https://pcornel.dk/topic.php?topic=3186

Back to the Topic

Answer

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.

Remember

  • Hard links make WinSxS size look larger than real use.
  • StartComponentCleanup safely removes superseded versions.
  • Never delete WinSxS files by hand.

First checks

  • DISM /Online /Cleanup-Image /CheckHealth — quick corruption flag check
  • DISM /Online /Cleanup-Image /ScanHealth — full scan
  • DISM /Online /Cleanup-Image /RestoreHealth — repair from Windows Update or /Source
  • sfc /scannow — verify/repair system files
  • Get-Content C:\Windows\Logs\CBS\CBS.log -Tail 50 — servicing log

Verify in this order

WinSxS = component store with hard links to system files

Where it usually breaks

First mismatch in source/package/image/device identity → servicing/setup configuration → installation/activation → reboot/boot/runtime → system/component health → user/workload validation; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3186

Confirmation

Confirm action

Continue?