Skip to content

Instantly share code, notes, and snippets.

@salaros
Last active November 3, 2018 10:11
Show Gist options
  • Save salaros/c1b54c14a301daa34ad5de696f7b2969 to your computer and use it in GitHub Desktop.
Save salaros/c1b54c14a301daa34ad5de696f7b2969 to your computer and use it in GitHub Desktop.
Clean Up the WinSxS Folder via DISM
:: Removes all superseded versions of every component in the component store.
:: All existing service packs and updates cannot be uninstalled after this command is completed.
:: This will not block the uninstallation of future service packs or updates.
dism /online /Cleanup-Image /StartComponentCleanup /ResetBase
:: Reduces the amount of space used by a Service Pack.
:: The service pack cannot be uninstalled after this command is completed.
dism /online /Cleanup-Image /SPSuperseded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment