TechBuzzPro

How to Check the Real Size of the WinSxS Folder on Windows 11

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The WinSxS folder on Windows 11 often appears to take up tens of gigabytes in File Explorer, but that number is misleading. The real size is usually much smaller because many files are hard links that point to the same data elsewhere. To get the true size, use the built-in Deployment Image Servicing and Management (DISM) tool with the /AnalyzeComponentStore option. Open an elevated Command Prompt or Terminal, run Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore, and read the "Actual Size of Component Store" line. That figure is the accurate on-disk size. The steps below walk you through it safely.

What You'll Need

  • A Windows 11 PC with administrator rights.
  • Command Prompt or Windows Terminal (no extra downloads required).
  • A few minutes of patience: the analysis can take several minutes on slower drives.

Step-by-Step

  1. Open an elevated command prompt. Right-click the Start button and choose Terminal (Admin) or Command Prompt (Admin). If you use the search box, type cmd, right-click Command Prompt, and select Run as administrator. Accept the User Account Control prompt.
  2. Run the analysis command. In the elevated window, type the following exactly and press Enter:
    Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
    The tool will scan the component store. You'll see a progress bar and then a report.
  3. Read the results. Look for the section titled Component Store (WinSxS) information. The key lines are:
    • Windows Explorer Reported Size of Component Store – the inflated number you see in File Explorer.
    • Actual Size of Component Store – the real disk usage after accounting for hard links.
    • Shared with Windows – files also used by the operating system.
    • Backups and Disabled Features – space used by previous updates and optional components.
    • Cache and Temporary Data – temporary files that can be cleaned.
    • Date of Last Cleanup – when the store was last serviced.
    The "Actual Size" value is what you want.
  4. Optional: check for cleanup recommendations. The report ends with a line like Component Store Cleanup Recommended: Yes or No. If it says Yes, you can run Dism.exe /Online /Cleanup-Image /StartComponentCleanup to reduce the size. This removes superseded components but does not affect your ability to uninstall recent updates immediately; however, it may prevent uninstalling older updates. Run it only if you are comfortable with that trade-off.
  5. Close the window. No changes are made by the analysis command; you can simply close the terminal.

Common Mistakes

  • Trusting File Explorer's size. File Explorer counts every hard link as a separate file, so the WinSxS folder looks far larger than it is. Always use DISM for the real figure.
  • Running the command without admin rights. The analysis requires elevation; otherwise you'll get an error.
  • Deleting files manually. Never delete or modify anything inside WinSxS. Doing so can break Windows Update and system stability.
  • Confusing analysis with cleanup. /AnalyzeComponentStore only reports; it does not free space. Use /StartComponentCleanup for that, and understand the consequences first.
  • Ignoring the "Shared with Windows" line. That portion is not extra space; it's already counted elsewhere. The actual size already accounts for it.

Tips

  • Run the analysis after major Windows updates to see how much the component store has grown.
  • If you need to free space, consider Disk Cleanup (cleanmgr) and the "Windows Update Cleanup" option, which is safer than manual deletion.
  • The actual size can be a few gigabytes even on a fresh install; that's normal because WinSxS holds essential system components.
  • For a quick visual, you can use the Settings app: System > Storage > Temporary files, but it won't show the true WinSxS size—only DISM does.
  • Keep at least 10–15 GB free on your system drive for Windows to function smoothly, regardless of WinSxS size.

Troubleshooting

  • Command not recognized: Ensure you typed Dism.exe correctly and are in an elevated prompt. If you're in PowerShell, the command still works, but you may need to run it as administrator.
  • Error 0x800f0906 or similar: This often indicates corruption or that the component store cannot be analyzed. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth first, then retry.
  • Analysis hangs or takes very long: On slow hard drives, it can take 10–15 minutes. Let it finish; do not close the window.
  • "Actual Size" is missing: Make sure you are running Windows 11 (or Windows 10) and that the command completed without errors. If the output is truncated, scroll up in the terminal.
  • Cleanup recommended but you're unsure: Research what /StartComponentCleanup does before running it. It removes previous versions of updated components, which means you cannot uninstall those updates later.

Frequently Asked Questions

Why does File Explorer show a much larger size for WinSxS?

File Explorer counts hard-linked files multiple times. WinSxS contains many hard links to system files, so the reported size is inflated. DISM calculates the actual unique disk usage.

Is it safe to delete the WinSxS folder?

No. Deleting or modifying WinSxS will break Windows Update and may prevent the system from booting. Always use official tools like DISM or Disk Cleanup.

How often should I check the WinSxS size?

There's no fixed schedule. Check it if you're low on disk space or after a large cumulative update. Otherwise, Windows manages it automatically.

Does the actual size include backups of previous updates?

Yes, the "Backups and Disabled Features" line shows space used by previous versions of components. Running cleanup can reduce that.

Can I use PowerShell instead of Command Prompt?

Yes. The DISM command works identically in an elevated PowerShell window. Just type the same command.

What does "Component Store Cleanup Recommended: Yes" mean?

It means DISM has detected superseded components that can be removed to save space. You can run Dism.exe /Online /Cleanup-Image /StartComponentCleanup to perform the cleanup, but note that it removes the ability to uninstall older updates.