Open and Use Disk Cleanup in Windows 10  

Page 8 of 9 FirstFirst ... 6789 LastLast

  1. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #70

    Brink said:
    I believe it will only show items that there's something to clean up from.
    Thanks @Brink.



    Just one final question please. Am I right in saying that . . .

    Code:
    
    “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Content Indexer Cleaner“

    . . . is associated with Search Indexing, and if ADDED to cleanmgr, would mean that it would Clear the EXISTING Indexing and would trigger a TOTAL Re-Indexing of the Drive?

    Thanks.
      My Computer


  2. Posts : 70,992
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #71

    Paul Black said:
    Thanks @Brink.



    Just one final question please. Am I right in saying that . . .

    Code:
    
    “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Content Indexer Cleaner“

    . . . is associated with Search Indexing, and if ADDED to cleanmgr, would mean that it would Clear the EXISTING Indexing and would trigger a TOTAL Re-Indexing of the Drive?

    Thanks.
    I don't know either, but you can test to see if the index starts getting rebuilt after trying it.
      My Computers


  3. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #72

    Brink said:
    I don't know either, but you can test to see if the index starts getting rebuilt after trying it.

    Thanks @Brink. I could NOT find a definitive answer on the Internet, so I have decided to leave it omitted.



    I created a ONE LINER which lists ALL the cleanmgr items in the REG Key . . .

    Code:
    
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches

    I do NOT know if this will be useful to add to the Tutorial . . .

    Code:
    
    @echo off & cls & echo. & echo  ============================================ & echo  List of Available [cleanmgr] Items & echo  ============================================ & (for /f  "usebackq tokens=8 delims=\" %i in (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches"`) do echo  %i)  & echo  ============================================ & echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & Exit

    On my OS it outputs the following . . .

    Open and Use Disk Cleanup in Windows 10-cleanmgr_output.jpg


      My Computer


  4. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #73

    Hello @Brink ,

    As part of my Clean Install post customisations, I run the following Script . . .

    Code:
    
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    ::  REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Content Indexer Cleaner" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\D3D Shader Cache" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Delivery Optimization Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Device Driver Packages" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Diagnostic Data Viewer database files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\DownloadsFolder" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Internet Cache Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Language Pack" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Offline Pages Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Old ChkDsk Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Previous Installations" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Recycle Bin" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\RetailDemo Offline Content" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Service Pack Cleanup" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Setup Log Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\System error memory dump files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\System error minidump files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Setup Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Sync Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Upgrade Discarded Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\User file versions" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Defender" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Error Reporting Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows ESD installation files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Upgrade Log Files" /v StateFlags9999 /t REG_DWORD /d 00000002 /f
    
    

    Then, as part of my OS cleanup [ as and when needed ], I have this within a Script that runs cleanmgr [ NO need to check ANY boxes etc as it just runs ] . . .

    Code:
    
    %SystemRoot%\System32\cmd.exe /c cleanmgr /sagerun:9999

    Works great, EXCEPT, that it also runs on ANY attached drives, whether internal or external.

    How can I get this to just run on the C:\ [ OS ] drive and IGNORE all the other drives / partitions please?
      My Computer


  5. Posts : 70,992
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #74

    Paul Black said:
    Hello @Brink ,

    Then, as part of my OS cleanup [ as and when needed ], I have this within a Script that runs cleanmgr [ NO need to check ANY boxes etc as it just runs ] . . .

    Code:
    %SystemRoot%\System32\cmd.exe /c cleanmgr /sagerun:9999
    Works great, EXCEPT, that it also runs on ANY attached drives, whether internal or external.

    How can I get this to just run on the C:\ [ OS ] drive and IGNORE all the other drives please?
    It looks like you specified to run cleanmgr only on the "C" drive in your command above.

    https://docs.microsoft.com/en-us/win...mands/cleanmgr
      My Computers


  6. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #75

    Yes, this is why I am asking in case I missed anything simple. My disk has three Partitions, C:, D:, & I:, but unfortunately, it runs on ALL of them.
    I will further investigate tomorrow.
      My Computer


  7. Posts : 4
    10
       #76

    xbliss said:
    Is there an outline the explains what is included / size/ files on each of the Options during EXTENDED mode?
    how to see sizes?
      My Computer


  8. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #77

    Hello @Driftix,
    Welcome to TenForums.

    Driftix said:
    how to see sizes?
    It does NOT show ANY sizes during ANY of the cleanup modes.
    Is that what you mean ?
    If NOT, may I suggest that you start a Thread explaining in a bit more detail what you would like to do.
      My Computer


  9. Posts : 4
    10
       #78

    Paul Black said:
    Hello @Driftix,
    Welcome to TenForums.



    It does NOT show ANY sizes during ANY of the cleanup modes.
    Is that what you mean ?
    If NOT, may I suggest that you start a Thread explaining in a bit more detail what you would like to do.
    exactly, is there any way to make it show size?
      My Computer


  10. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #79

    Hello @Driftix,

    Driftix said:
    exactly, is there any way to make it show size?
    NOT using EXTENDED cleanmgr, it is NOT designed for that purpose.

    If you are talking about the size used before and after, then you can either run a command in CMD Prompt or PowerShell, obviously one before the clean, and one after.

    I hope this helps.
    Last edited by Paul Black; 05 Sep 2022 at 14:34.
      My Computer


 

Tutorial Categories

Open and Use Disk Cleanup in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:28.
Find Us




Windows 10 Forums