To clean up windows component store (C:\Windows\WinSxS).
- Open up PowerShell
- To check if there is any component registry is corrupted. “dism /Online /Cleanup-Image /CheckHealth”
- If this returns error, try to do this to fix “dism /Online /Cleanup-Image /RestoreHealth” and Reboot your computer
- To check if windows component store can be cleaned up “dism.exe /online /Cleanup-Image /AnalyzeComponentStore”
- To remove all superseded version in the component store “dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase”
- To further clean up space, you can also remove all the backup components needed for deinstallation of the service pack “dism.exe /online /Cleanup-Image /SPSuperseded”