TechBuzzPro

WinSxS Folder Size: How to Check and Analyze in Windows 11

· 6 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

To determine the actual size of the WinSxS folder in Windows 11, you cannot rely on the right-click Properties menu because it reports inflated numbers due to hard links; instead, you must run the command Dism /Online /Cleanup-Image /AnalyzeComponentStore in an elevated Command Prompt. This process allows you to see exactly how much disk space the Windows Component Store is consuming and whether it requires maintenance to reclaim space. The WinSxS (Windows Side-by-Side) folder is a critical system directory located in C:\Windows that stores multiple versions of DLLs and system files to ensure stability and allow for the installation of updates or the removal of optional features.

What You'll Need

  • A computer running Windows 11.
  • An account with Administrator privileges to run system-level commands.
  • An active internet connection (recommended, though not strictly required for the analysis command).

Step-by-Step

  1. Click on the Start button or press the Windows key on your keyboard.
  2. In the search bar, type cmd.
  3. In the search results, look for Command Prompt. Do not simply press Enter; instead, right-click on Command Prompt and select Run as administrator. If a User Account Control (UAC) prompt appears asking if you want to allow this app to make changes to your device, click Yes.
  4. Once the black Command Prompt window opens, ensure the title bar says "Administrator: Command Prompt". If it does not, the commands will fail with an "Access Denied" error.
  5. Carefully type the following command exactly as shown: Dism /Online /Cleanup-Image /AnalyzeComponentStore
  6. Press the Enter key.
  7. Wait for the process to complete. Windows will scan the Component Store, which may take several minutes depending on your disk speed (SSD vs HDD) and the number of updates installed.
  8. Review the output provided in the window. You will see several lines of data. Look specifically for the line labeled Actual Size of Component Store. This is the true amount of space the folder is taking up on your physical drive.
  9. Observe the line Component Store Cleanup Recommended. If this says "Yes", it means there are outdated versions of components that can be safely removed to save space.

Common Mistakes

The most frequent mistake users make is right-clicking the WinSxS folder in File Explorer and selecting Properties. This method provides a misleadingly large number. This happens because the WinSxS folder uses "hard links." A hard link is a way for the file system to make one physical file appear in two different locations. For example, a file might physically exist in the WinSxS folder but appear as if it is also in C:\Windows\System32. File Explorer counts the size of the file in both locations, effectively doubling or tripling the reported size of the folder. The DISM command is the only official way to calculate the size while ignoring these duplicate links.

Another common error is forgetting to run the Command Prompt as an administrator. Because the WinSxS folder contains protected system files, standard user accounts are blocked from analyzing or modifying its contents. If you see an error stating "Error: 740" or "Access Denied," it is almost certainly because the terminal was not elevated.

Some users attempt to manually delete files inside the WinSxS folder using File Explorer or third-party "cleaner" software. This is a critical mistake. Manually deleting files from this directory can corrupt the Windows operating system, prevent the computer from booting, or make it impossible to install future security updates. Never delete anything inside this folder manually.

Tips

If the analysis shows that cleanup is recommended, you can perform the cleanup using another DISM command. In the same administrator Command Prompt window, type Dism /Online /Cleanup-Image /StartComponentCleanup and press Enter. This will remove previous versions of updated components, effectively shrinking the folder size without risking system stability.

For users who want to reclaim even more space, there is an advanced command: Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase. This command removes all superseded versions of every component in the store. Be aware that once you run this, you cannot uninstall any currently installed Windows Updates or Service Packs, as the backup files required for the uninstallation process will be deleted.

To keep the WinSxS folder from growing too large over time, ensure that Windows Update is running regularly. While updates initially increase the folder size, the system eventually marks old versions for cleanup during scheduled maintenance tasks. You can also use the built-in Disk Cleanup tool by searching for "Disk Cleanup" in the Start menu, selecting the C: drive, and clicking Clean up system files. Check the box for "Windows Update Cleanup" to achieve a similar result to the DISM commands through a graphical interface.

Troubleshooting

If the DISM command hangs or stays at a certain percentage (like 20% or 100%) for a long time, do not close the window immediately. The process is scanning thousands of small files and can appear frozen. Give it at least 15 to 20 minutes before assuming it has crashed.

If you receive an error saying "The requested operation failed" or a specific error code like 0x800f081f, it may indicate that the component store is corrupted. In this case, the first step is to run the System File Checker. Type sfc /scannow in the administrator Command Prompt and press Enter. This tool will scan for corrupted system files and attempt to repair them. Once the SFC scan is complete, restart your computer and try the DISM analysis command again.

If you are unable to open the Command Prompt as an administrator because your account has lost admin rights, you may need to boot your computer into Safe Mode. To do this, hold the Shift key while clicking Restart from the Power menu. Navigate to Troubleshoot > Advanced options > Startup Settings > Restart, and then press 4 or F4 to enter Safe Mode. From there, you can attempt to fix account permissions or run the analysis tools.

Frequently Asked Questions

Why is the WinSxS folder so large?

It stores multiple versions of system files to allow for "rollbacks" if an update causes issues, and it provides the source files needed to enable or disable Windows features (like Hyper-V or WSL) without needing an installation disc.

Is it safe to use third-party software to clean WinSxS?

It is generally not recommended. Using official Microsoft tools like DISM and Disk Cleanup is the only guaranteed safe method. Third-party tools may delete files that the system still needs, leading to instability.

Will cleaning the WinSxS folder slow down my PC?

No, it will not slow down your PC. In fact, by reclaiming disk space, you may improve performance if your system drive was nearly full, as Windows requires free space for the page file and temporary caches.

How often should I analyze and clean the WinSxS folder?

There is no need to do this weekly. Performing a cleanup once every few months or after a major Windows version update is usually sufficient to maintain a healthy balance of space and system recoverability.

Can I move the WinSxS folder to another drive?

No, the WinSxS folder must remain on the system partition (usually C:). Moving it would break the hard links and prevent Windows from functioning correctly.