Disk Cleanup Advanced Shortcut vs DISM Command

Discussion in 'Windows 10' started by Ultra Male, Jan 9, 2018.

  1. Ultra Male

    Ultra Male MDL Expert

    May 30, 2014
    1,127
    503
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. TairikuOkami

    TairikuOkami MDL Addicted

    Mar 15, 2014
    714
    590
    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. Ultra Male

    Ultra Male MDL Expert

    May 30, 2014
    1,127
    503
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...