New
#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
Hello PhoenixCodes, and welcome to Ten Forums.
You can compress and uncompress the OS as wanted.
Compress or Uncompress Windows 10 with Compact OS
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.
StartX (Naughter Software) and Sleep are external CMD tools.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
This was just the kind of tutorial I was looking for! Thank you!
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
Hello @Brink,
Just a quick question please.
If you were to run for examplecleanmgr /sageset:9999
, there is a Window that opens that allows you to eitherCheck / Uncheck
items. That is obviously a one time setup, because from then on, you would just runcleanmgr /sagerun:9999
.
IExported
theHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches
Key items and created the below, which will automatically replace runningcleanmgr /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 areNOT
in the Window when runningcleanmgr /sageset:9999
please.
Thanks.
![]()
Last edited by Paul Black; 03 Oct 2021 at 04:10.
Hello @Paul Black,
I believe it will only show items that there's something to clean up from.