Disk Cleanup Advanced Shortcut vs DISM Command

Discussion in 'Windows 10' started by Super Spartan, Jan 9, 2018.

  1. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,360
    707
    60
  2. TairikuOkami

    TairikuOkami MDL Addicted

    Mar 15, 2014
    900
    782
    30
    Yes. Disk Cleanup does not perform /ResetBase. And neither of those cleans all those WU backups:

    Code:
    del "%WINDIR%\Installer\$PatchCache$" /s /f /q
    del "%WINDIR%\SoftwareDistribution" /s /f /q
    del "%WINDIR%\WinSxS\Backup" /s /f /q
     
  3. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,360
    707
    60
    Thanks man, so is it a good idea to run the DISM command I posted above followed by the commands you posted from time to time?

    Edit, when I ran those commands as a batch file, I could see a large list of files scrolling really fast but I saw an access denied message for deleting them.

    I did run the command as admin. What shall I do?