Pages

Sunday, July 05, 2015

Reduce the size of WinSxS directory

This is particularly useful on tablets with limited space on system drive.

How to Reduce the Size of the WinSxS directory and Free Up Disk Space on Windows Server 2012 R2 and Windows 8.1 or do we even need to? (link)

A couple of useful hints:
  • There is a scheduled task in Servicing folder, that cleans up the WinSxS automatically.
  • Running Disk Cleanup Wizard will run the above task, too.
  • Console command for the above is "Dism.exe /online /cleanup-image /StartComponentCleanup"
  • /ResetBase ("Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase") removes all the superseded versions of files, which prevents uninstalling updates but also saves quite a bit of space.
  • Check space used with "Dism.exe /online /Cleanup-Image /AnalyzeComponentStore".

No comments: