To organize the WinSxS folder, Windows has Disk Cleanup available . This liberator also serves to clean other Windows folders. It can be opened from the search field or from the Windows command window with the cleanmgr.exe command . First, you will be asked which disk drive you want to clean. Then a selection field will be displayed with the items that can be removed. For example:
- Downloaded program files
- Temporary internet files
- Distribution optimization files
- Temporary files
Also, you can see the total space that will be reclaimed. After selecting the desired categories, it is confirmed with the button? OK? and cleaning will start after a confirmation request.
You will find additional options in the section? Clean system files ?, although you will need administrator rights to access. The program will also start asking which drive to clean. The following additional selection fields will then be available:
- Windows update cleanup
- Windows Defender Antivirus
- Windows update log files
- Device Driver Packages
A practical alternative to cleaning the WinSxS folder is the command line program dism.exe . To do this, the console must be started with the command prompt ( cmd.exe ) with administrator rights. The Dism.exe / Online / Cleanup-Image / AnalyzeComponentStore command analyzes the WinSxS folder to determine the space actually used. Additionally, running the command provides useful information, such as the date of the last cleanup, and breaks down for which components memory is being used. The tool also offers the WinSXS cleanup function: Dism.exe / Online / Cleanup-Image / StartComponentCleanup
Other useful program options are:
- Dism.exe / Online / Cleanup-Image / ScanHealth to inspect the WinSxS folder
- Dism.exe / Online / Cleanup-Image / RestoreHealth to fix certain errors. As with all folders, there is also the possibility to reduce the size of the WinSxS folder through compression . First of all, you must open the properties in the context menu and select the option? Advanced options ?. In the new selection field, you must check the box? Compress content to save disk space ?.