Advertisement
ulfben

CleanComponentStore (winsxs)

Mar 8th, 2018
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :: Run from elevated prompt to clean Windows 10 component store (aka: the "winsxs"-folder)
  2. :: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder
  3.  
  4. :: manually run StartComponentCleanup to remove unused components immediately. NOTE: can take >20 minutes.
  5. Dism.exe /online /Cleanup-Image /StartComponentCleanup
  6.  
  7. :: remove all superseded versions of every component in the component store.
  8. Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
  9.  
  10. :: remove backup files that are used to uninstall Service Packs.
  11. Dism.exe /online /Cleanup-Image /SPSuperseded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement