How to Determine the Size of the WinSxS Folder in Windows 11

joshua woroniecki lzh3hPtJz9c unsplash
joshua woroniecki lzh3hPtJz9c unsplash

This post shows students and new users steps to determine the WinSxS folder size in Windows 11.

The component store (WinSxS folder) contains components that makeup Windows and allow you to operate your system. If you need to roll back changes or repair corrupted files, these components are kept in this folder.

The folder is located at C:\Windows\WinSxS. Files in this folder might appear to be stored in more than one place in the operating system, but there’s usually only one copy of the file, and the rest are hard links.

Here are some examples of how the Windows Component Store files are used:

  • Using Windows Update to install new component versions. This keeps systems secure and up-to-date.
  • Enabling or disabling Windows features.
  • Adding roles or features using Server Manager.
  • Moving systems between different Windows Editions.
  • System recovery from corruption or boot failures
  • Uninstalling problematic updates
  • Running programs using side-by-side assemblies

While you may use File Explorer to determine the size of directories without considering that the contained files might be hard linked, using it to determine the size of the WinSxS folder may not give you the correct results.

DISM includes functionality that can determine how much disk space the WinSxS folder uses.

How to view the size of the WinSxS folder in Windows 11

As mentioned above, using File Explorer to determine the size of the WinSxS folder in Windows 11, DISM includes functionality that can determine how much disk space the WinSxS folder uses.

Below is how to determine the size of your WinSxS folder in Windows 11.

First, open Windows Terminal as administrator and select either Windows PowerShell or Command Prompt.

Once opened, run the command below to view the actual size of your WinSxS folder.

Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

Here’s the information that’s available in the output:

TitleDescription
Windows Explorer Reported Size of Component StoreThis value is the size of the WinSxS folder if computed by Windows Explorer. This value doesn’t factor in using hard links within the WinSxS folder.
Actual Size of Component StoreThis value factors in hard links within the WinSxS folder. It doesn’t exclude files that are shared with Windows by using hard links.
Shared with WindowsThis value provides the size of files that are hard-linked so that they appear both in the component store and in other locations (for the normal operation of Windows). This is included in the actual size, but shouldn’t be considered part of the component store overhead.
Backups and Disabled FeaturesThis is the size of the components that are being kept to respond to failures in newer components or to provide the option of enabling more functionality. It also includes the size of component store metadata and side-by-side components.

This is included in the actual size and is part of the component store overhead.
Cache and Temporary DataThis is the size of files that are used internally by the component store to make component servicing operations faster. This is included in the actual size and is part of the component store overhead.
Date of Last CleanupThis is the date of the most recently completed component store cleanup.
Number of Reclaimable PackagesThis is the number of superseded packages on the system that component cleanup can remove.
Component Store Cleanup RecommendedThis is a component store cleanup recommendation. Cleanup is recommended when performing a cleanup process may reduce the size of the component store overhead.

In this example, the WinSxS folder appears to be 7.15 GB, but the actual overhead (the sum of the size of backups and disabled features and the size of the cache and temporary data) is 1.46 GB.

That should do it!

Conclusion:

This post showed you how to determine the WinSxS folder in Windows 11. Please use the comments form below if you find any errors above or have something to share.

Posted by
Richard

I love computers; maybe way too much. What I learned I try to share at geekrewind.com.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: