Solution:
Root Cause: NTFS Hard Link Pointer Double-Counting via Standard File Queries
Windows Explorer and third-party disk visualization tools (like TreeSize or WinDirStat) calculate directory sizes by summing file byte counts across folder paths. The
WinSxS (Windows Side-by-Side) directory is the single source of truth for all operating system binaries (
dll,
exe,
sys). Files appearing in
C:\Windows\System32 or
C:\Windows\SystemApps are not copies; they are NTFS Hard Links (
HardLink pointers) that reference the identical physical clusters stored in
WinSxS.
When standard disk analyzers scan
C:\Windows, they count the physical bytes once in
WinSxS and again for every hard link in
System32. This creates an illusion that
WinSxS is consuming 20GB-30GB when its actual unique memory footprint on the drive is substantially smaller.
Diagnostic Verification:
1Open Command Prompt as Administrator (Ctrl + Shift + Esc > Run new task > cmd with administrative privileges).
2Run the official DISM Component Store analysis tool:
dism /Online /Cleanup-Image /AnalyzeComponentStore
3Examine the output report fields:
Raw Size of Component Store: Total size reported by File Explorer (includes hard links).Actual Size of Component Store: True disk space consumed solely by WinSxS.Shared with Windows: Space utilized by system files referenced elsewhere via hard links.Backups and Disabled Features: Space occupied by rollback payload files and features.Step-by-Step Fix:
1Evaluate True Reclaimable Space:
Inspect the Component Store Cleanup Recommended line in the DISM output.If it reports No, performing aggressive manual deletion will not free meaningful disk space and risks breaking OS component integrity.2Perform Safe Automated Component Store Maintenance:
If cleanup is recommended, execute the standard maintenance task: dism /Online /Cleanup-Image /StartComponentCleanup
3Execute the Task Scheduler Maintenance Job Manually:
Run the built-in Windows background task that cleans up component stores: schtasks /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup"
Prevention & Long-Term Monitoring:
Never manually delete files directly from C:\Windows\WinSxS using File Explorer or third-party file unlockers; doing so destroys NTFS hard link metadata and corrupts the OS servicing stack.