Disk Cleanup Advanced Shortcut vs DISM Command

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

  1. Phoenix

    Phoenix MDL Expert

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

    TairikuOkami MDL Addicted

    Mar 15, 2014
    667
    520
    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. Phoenix

    Phoenix MDL Expert

    May 30, 2014
    1,110
    495
    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...