Windows 7 Service Pack 1 or Windows Server 2008 R2 Service Pack 1 installed: DISM /online /Cleanup-Image /SpSuperseded or Disk Cleanup Wizard (cleanmgr.exe).
Windows Server 2008 Service Pack 2 installed: Compcln.exe.
To remove the service pack files from a Windows installation, use the following in-box utilities: However, if you make the service pack installation permanent, the service pack is not removable. To reduce the size of the component store directory on a Windows installation, you can decide to make the service pack installation permanent and reclaim used space from the service pack files. Additionally, we do not recommend that you manually remove or delete files from the component store. If you try to move the component store, this will result in the inability to correctly install Windows updates, service packs, roles, or features. The component store cannot reside on a volume other than the system volume because of the NTFS hard links. For example, if a file that is named advapi32.dll is 700 KB and is contained in the component store and in the \Windows\system32 directory, Windows Explorer would inaccurately report that the file consumes 1,400 KB of hard disk space. The Windows shell will count each reference to a hard link as a single instance of the file for each directory in which the file resides. The component store will show a large directory size because of how the Windows Explorer shell accounts for hard links. The component store uses NTFS hard links between itself and other Windows directories to increase the robustness of the Windows platform. This causes the component store to grow over time as more updates, features, or roles are added to the installation. And, any updates to those files are also held within the component store as the updates are installed. The component store contains all the files that are required for a Windows installation. Servicing operations include, but are not limited to, Windows Update, service pack, and hotfix installations. The Windows component store (C:\Windows\winsxs) directory is used during servicing operations within Windows installations. When you examine the size of the C:\Windows folder, you may notice that the C:\Windows\winsxs directory seems to use lots of disk spaces. This article provides a resolution to solve the disk space issues that are caused by a large Windows component store (WinSxS) directory.Īpplies to: Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1 Original KB number: 2795190 Symptoms