Buy Me a Coffee

Sunday, May 17, 2015

Clean Up the WinSxS Folder



  1. At an elevated command prompt, run the following command:
    Net Stop WUAUSERV
  2. Delete the contents of the %windir%\softwaredistribution\download folder.
  3. At an elevated command prompt, run the following command:
    Net Start WUAUSERV

for windows 8.1


The following command will uninstall all previous versions of components without the scheduled task’s 30-day grace period:
DISM.exe /online /Cleanup-Image /StartComponentCleanup
The following command will remove files needed for uninstallation of service packs. You won’t be able to uninstall any currently installed service packs after running this command:
DISM.exe /online /Cleanup-Image /SPSuperseded
The following command will remove all old versions of every component. You won’t be able to uninstall any currently installed service packs or updates after this completes:
DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase