WinSxS folder

Also known as: component store

On this page 7

The WinSxS folder (C:\Windows\WinSxS), also called the component store, is the directory where Windows keeps every operating system component, its versions and the metadata needed to install, update, repair and remove features. Among Windows storage & file systems topics it is notable because it often appears to consume many gigabytes of disk space, although much of that size is an illusion created by hard links.

The name stands for Windows Side-by-Side, a technology first introduced to let several versions of the same library coexist. Since Windows Vista, the folder has become the foundation of component-based servicing, so it cannot be deleted or trimmed manually without damaging the system.

How the component store works

The component store works by holding the authoritative copy of every system file and projecting it into the visible system folders through NTFS hard links. A file such as a core DLL appears in C:\Windows\System32, yet its data exists only once on disk; System32 and WinSxS are two directory entries pointing to the same file record.

Each component lives in its own subfolder whose name encodes processor architecture, component name, public key token, version and language. Manifests in WinSxS\Manifests describe what each component contains, while the servicing stack, through TrustedInstaller, uses those manifests to decide which version should be projected into the live system.

The table below summarizes the main parts of the component store and their purpose.

PartLocationPurpose
Component directoriesWinSxS\ (architecture_name_version folders)Store file payloads of each component version
ManifestsWinSxS\ManifestsDescribe files, registry data and dependencies
BackupWinSxS\BackupCopies used to repair critical boot files
Temp and pending dataWinSxS\TempStaging for pending updates and deletions
Catalog referencesSystem32\CatRootDigital signatures that validate components
Key parts of the WinSxS folder

Why the folder looks larger than it is

The WinSxS folder looks larger than it is because File Explorer counts hard-linked files twice: once in System32 or Program Files and again in WinSxS. A folder reported at 10 GB might hold only a few gigabytes of data that belongs exclusively to the component store.

The reliable way to measure it is Dism /Online /Cleanup-Image /AnalyzeComponentStore, which reports the actual size of the component store and breaks it into categories. The table below explains what those categories mean.

CategoryMeaningCan be reclaimed
Shared with WindowsHard-linked files also used by the running systemNo
Backups and disabled featuresSuperseded versions and optional features kept for removal or enablingPartly, through cleanup
Cache and temporary dataFiles used to speed up servicingYes, automatically or by cleanup
Reclaimable packagesSuperseded update packagesYes, via StartComponentCleanup
Size categories reported by DISM

On a typical Windows 11 installation, the actual store size ranges from about 5 to 10 GB, depending on edition, installed language packs, optional features and how many cumulative updates have been applied since the last cleanup.

Cleaning up the component store safely

The component store is cleaned up safely only with supported servicing tools, never by deleting files directly. Windows runs a scheduled task named StartComponentCleanup that removes superseded versions after a grace period of roughly 30 days, so manual action is rarely essential.

The following decision table compares the supported methods and their consequences.

MethodEffectTrade-off
Disk Cleanup, Windows Update CleanupRemoves superseded update filesOlder updates can no longer be uninstalled
DISM /StartComponentCleanupRemoves superseded components immediatelySkips the 30-day grace period
DISM /StartComponentCleanup /ResetBaseRemoves all superseded versions permanentlyNo installed update can be uninstalled
Features on Demand removalDeletes payloads of unused optional featuresFeature must be downloaded again to enable
Storage SenseTriggers temporary file cleanupLimited effect on WinSxS itself
Supported ways to reduce WinSxS size

The ResetBase option is the most aggressive choice and suits golden images or tightly constrained virtual machines. On ordinary workstations it removes a useful safety margin, because a faulty cumulative update can then be fixed only by a newer update or by recovery tools.

Role in repair and servicing

WinSxS plays a central role in repair because it is the local source of known-good files. When System File Checker runs sfc /scannow, it compares protected files against the store and replaces damaged copies from WinSxS. If the store itself is damaged, SFC cannot fix anything, which is why DISM /Online /Cleanup-Image /RestoreHealth is usually run first to repair the component store from Windows Update or a mounted install image.

Adding a feature through Windows Features or removing it later also depends on the store. A disabled feature may still have its payload in WinSxS, so enabling it works offline; a feature whose payload was removed requires a source such as installation media or Windows Update.

Common mistakes and misconceptions

Most problems with the WinSxS folder result from treating it as ordinary disposable data. The list below covers the errors seen most frequently in support cases.

  • Deleting files manually breaks servicing, causes update failures and can stop Windows from starting.
  • Taking ownership of the folder to move it elsewhere is unsupported and disrupts TrustedInstaller permissions.
  • Compressing the folder with NTFS compression slows servicing and gains little space.
  • Judging size from Explorer leads to overestimated savings; use the DISM analysis instead.
  • Expecting cleanup to free space instantly ignores that pending operations finish only after a restart.

It is also wrong to assume that WinSxS grows without limit. With regular automatic cleanup, the store stays roughly stable between feature updates, and a feature update replaces it with a new baseline, moving the old installation into the Windows.old folder for a limited rollback period.

The idea in brief

Think of the WinSxS folder as the master warehouse of Windows parts. The rooms you see in Windows, such as System32, display items that are really stored in the warehouse, so the same item is not kept twice even though it appears in two places.

Because of that double display, the warehouse seems huge. In reality much of the space is shared. Never empty the warehouse by hand; let Windows tidy it with its own cleanup tools, which know which old parts are safe to throw away.

A practical scenario

A systems administrator at a design studio prepares a Windows 11 image for twenty virtual desktops running on a host with limited SSD storage. Explorer shows the WinSxS folder at about 11 GB, and the administrator considers deleting old update folders to save space.

Instead, the administrator runs the DISM component store analysis, which reports an actual store size of 7.2 GB with 2.1 GB of reclaimable packages. Running StartComponentCleanup with ResetBase on the image, before sealing it, frees that space. Because the image is rebuilt monthly with the latest cumulative update, losing the ability to uninstall updates is acceptable. Each desktop clone now uses about 2 GB less storage, and updates continue to install without errors.