Open and Use Disk Cleanup in Windows 10  

Page 7 of 8 FirstFirst ... 5678 LastLast

  1. Posts : 311
    Microsoft Windows 10 x64
       #60

    I have manually cleared IE and Edge cache for all users => no change

    I was playing with sysprep (here) and after restart, it become clean
    not sure what I did, but it is solved
      My Computer


  2. Posts : 61,517
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #61

    Great news.
      My Computers


  3. Posts : 1
    Windows 10
       #62

    Edwin said:
    MS tech's don't know much more than we do.
    I was of the understanding it compresses non essential system files but I could be mistaken.

    Attachment 12842

    Once compressed via the 'Extended Cleanup' method (in prep for making a custom install ISO), is there an easy way to decompress them to improve system speed again?
      My Computer


  4. Posts : 61,517
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #63

    PhoenixCodes said:
    Once compressed via the 'Extended Cleanup' method (in prep for making a custom install ISO), is there an easy way to decompress them to improve system speed again?

    Hello PhoenixCodes, and welcome to Ten Forums.

    You can compress and uncompress the OS as wanted.

    Compress or Uncompress Windows 10 with Compact OS
      My Computers


  5. Posts : 9
    Windows 10 x64
       #64

    cleanmgr.exe long freeze solved


    Hi,
    From long-long time ago I fight against a some kind of a strange behavior of cleanmgr.exe (from W7 until W10). I tried everything to fix this issue without success.
    For no apparent reason, cleanmgr.exe start to begin to put it self at background, some time disappears and reappears, and freeze or take long time to finish.
    But the most weird thing is, all this happens if I don't touch the keyboard and the mouse. If I move de cursor over and around the Disk Cleanup's window or I click over the windows or put the cursor over the window and press some key, the program runs fine and quick.I search the web for this symptoms and found other people with the same problem without a working solution.
    Then I remember a CMD tool from Nirsoft: nircmd.exe. This tool can send keystrokes and cursor movements to the Windows desktop. So, I create a small bath script to execute cleanmgr.exe and using nircmd.exe: put the cursor over the title bar of Disk Cleanup and send some shift clicks every half second.
    This isn't a definitive solution but solve my problem with cleanmgr.exe strange behavior.
    Code:
    StartX /NOUI /REALTIME "cleanmgr.exe /sagerun:65535"
    :LOOP
    <nul (set /p x=.)
    nircmd.exe win activate title "Disk Cleanup"
    nircmd.exe setcursorwin 175 10
    nircmd.exe sendkeypress shift
    Sleep -m 500
    tasklist /FI "IMAGENAME eq cleanmgr.exe" | find /I "cleanmgr.exe" >nul 2>&1
    if %ERRORLEVEL% EQU 0 (goto :LOOP)
    echo DONE
    StartX (Naughter Software) and Sleep are external CMD tools.
      My Computer


  6. Posts : 125
    Windows 10
       #65

    This was just the kind of tutorial I was looking for! Thank you!
      My Computers


  7. Posts : 61,517
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #66

    exploder said:
    This was just the kind of tutorial I was looking for! Thank you!
      My Computers


  8. Posts : 245
    Windows 10 Pro 2004
       #67

    I ran Option 2 successfully 4 weeks ago.

    Today, with the green progress bar near the end, I had a Notification about virus protection.

    I was 99.83% sure that the Notification was caused by me, so I immediately disabled Controlled Folder Access. I assumed that the cleanup was writing to files.

    There was some further progress with the cleanup, then hung for 10 minutes. So I typed Exit, closed the console, re-opened it, and retyped the command. I only got as far as "Windows update log files" and it hung there for 10 minutes. I rebooted, and tried again. Still hung on Windows update log files.

    To answer your question: Yes, I turned CFA back on

    Thanks
      My Computer


  9. Posts : 16,001
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #68

    Hello @Brink ,

    Just a quick question please.

    If you were to run for example cleanmgr /sageset:9999, there is a Window that opens that allows you to either Check / Uncheck items. That is obviously a one time setup, because from then on, you would just run cleanmgr /sagerun:9999.

    I Exported the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches Key items and created the below, which will automatically replace running cleanmgr /sageset:9999 . . .

    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

    My question is, why are there items in the above that are NOT in the Window when running cleanmgr /sageset:9999 please.

    Thanks.

    Last edited by Paul Black; 03 Oct 2021 at 04:10.
      My Computer


  10. Posts : 61,517
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #69

    Hello @Paul Black,

    I believe it will only show items that there's something to clean up from.
      My Computers


 

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 00:09.
Find Us




Windows 10 Forums