Home >Operation and Maintenance >Windows Operation and Maintenance >Detailed graphic and text explanation on ECS Windows 2012 winsxs directory cleanup
Note: The operations mentioned in this article require a certain level of professional knowledge. Misoperation may cause system startup failure and data loss risks to the Windows operating system. . Please be sure to create system disk and data disk snapshots before taking the steps in this article so that you can roll back and recover lost data in case of problems.
Windows 2012 WincSXS takes up a lot of space and needs to be cleaned up. WinSXS contains all versions of service packs and hotfixes, which is convenient for installationHistoryQuery and subsequent upgrade/uninstallation. Over time, the WinSXS space will become larger.
1. Due to the existence of hard link, the file size seen by explore may not be accurate. Use the following command to check the actual usage size:
If component store cleanup recommended is displayed as yes, it is recommended to perform the following steps cleanup
shared with windows is a safe file. Backups and disbled features and cache and temporary data can be cleaned
2. Cleanup command is:
Dism.exe /online /Cleanup-Image /StartComponentCleanup
Note: You can consider adding parameters /SPSuperseded or /ResetBase
if Add /SPSuperseded, then the installed service pack cannot be uninstalled
If you add /ResetBase, then the installed service pack and hotfix cannot be uninstalled
Other suggestions
1. You can also use cleanmgr.exe to clean (this method is only applicable to win 7 by default, other versions need to install desktop experience)
2. Windows 2012 r2 can be deleted through powershell Unnecessary roles/features.
But it will be more troublesome to restore deleted roles/features later. For details, please refer to
This article is only for users’ reference when using ECS Windows. cites the Microsoft official link in the article, and the copyright belongs to Microsoft. Please note that the article is applicable to the scope of operating systems, as well as problems that may arise from Microsoft Windows product iterations or documents that are not updated in a timely manner. Alibaba Cloud officials are not responsible for the content of Microsoft official links cited.
The above is the detailed content of Detailed graphic and text explanation on ECS Windows 2012 winsxs directory cleanup. For more information, please follow other related articles on the PHP Chinese website!