How to view the actual size of the Win8.1 WinSxS folder

  
        When it comes to Win7/Win8.1 redundancy, I have to mention this WinSxS special folder. This folder is located in the C:\\Windows directory path, which stores a large number of system system backups and update patch backups. Over time, WinSxS has also become the largest folder for system disks.
For ordinary users, the biggest concern is why the WinSxS folder continues to grow bigger? In fact, the specific function of the WinSxS folder is component storage, which stores important Windows component functions, such as the familiar C:\\Windows\\system32 directory.
Here, add an example of the use of Windows component library files:
• Use Windows Update to install a new component version. This keeps the system safe and up to date.
• Enable or disable Windows features.
• Add a role or feature using Server Manager.
• Migrate systems between different Windows versions.
• System recovery from corruption or startup failure
• Uninstalling problematic updates
• Running programs using side-by-side assemblies
The Windows component library was first introduced in Windows XP to support side-by-side assemblies. Starting with Windows Vista, component libraries have been enhanced to track and process all the components that make up the operating system. These different operating system components track objects such as files, directories, registry keys, and services, and then specific versions of the components are collected into the package. The package is for Windows Update and DISM to update Windows. The components and packages used in a Windows installation are handled by the Windows Component Library. The process of determining the size of the Windows component library is complicated because Windows uses a number of files from a directory other than the Windows component library with a technique called hard linking. In this case, files from a component version will be displayed both inside and outside the Windows component library. By using hard links, Windows can keep multiple copies of the same file without actually taking up the extra space required for multiple copies.
Therefore, it is difficult for us to directly view the actual size in the resource manager, refer to the following figure:

Then how do we view the actual size of this folder? At this time, we directly use the built-in DISM management tool of Win8.1 to query the folder size. The specific operation reference is as follows--
IT home reminder: At present, the query method does not support Win7 platform, only limited to Win8.1 platform.
1, for example Win8.1 platform, we right click on the start button, select the command prompt (admin);

2, enter the following query command at the open command prompt:
Dism .exe /Online /Cleanup-Image /AnalyzeComponentStore
//Query the actual size of the current WinSxS folder

It is not difficult to see from the above picture that the actual capacity of the WinSxS folder is lower than the data display of Windows Explorer. .
In the WinSxS folder, it consists of three main parts: 1. Shared with Windows; 2. Backup and disabled functions; 3. Cache and temporary data.
Copyright © Windows knowledge All Rights Reserved