folder cleaning dont work as expected... c_windows_temp

hi fans,

coincidentally i have found out today that the folder c:\windows\temp is not cleaned - perhaps since 2019

i have it also as included folder in ccleaner...

-> with "include files and subfolders"

but there are two folders older as 24 hours

one "iif*.tmp" from 2019

another "iif*.tmp" from 2020

also there is an file "*.TMP" that was not found by ccleaner but the other file "*.sqm" from today was found

another folder from av was also not found

tested with 5,57 and 5,78

Maybe re-do the include with sub-folders which would be to delete it in CCleaner, and the configure it again to clean C:\Windows\Temp.

I also had that issue many years ago with custom root directory temp folders that I make on every drive such as; C:\Temp, D:\Temp, E:\Temp. A re-do fixed the ability in CCleaner, although it will still sometimes not delete sub-folders and that exists on WinXP and Win10.

I cannot confirm this. On my PCs the folder "C:\Windows\Temp" is completely cleaned.

I suspect that the remaining files and folders have certain system permissions so that CCleaner cannot delete them.

On 29/04/2021 at 09:52, Andavari said:
<div class="ipsQuote_contents">
	<p>
		Maybe re-do the include with sub-folders which would be to delete it in CCleaner, and the configure it again to clean C:\Windows\Temp.
	</p>
</div>

dont work nicer...

folders was not found and not showing in the searchlist

files was not found and not showing in the searchlist

example:

C:\Users\mynick\AppData\Local\Temp

folder "_av_" from 01.05.21 - empty, not showing and be there - manually i can delete it simply

C:\Windows\Temp

folder "iifc5da.tmp" from 20.04.2020 - empty, not showing and be there - manually i can delete it

folder "iif6420.tmp" from 26.08.2019 - empty. not showing ... etc.

file "zlt0217a.tmp" from 01.05.2021 - not showing

Never mind.

At the time set in Options>Scheduling, CCleaner runs the task "CCleanerClean" in Task Scheduler. This task is set to use the admin user account and only when the (admin) user is logged in. For me at least, I find therefore that when the only account I am logged into is a non-admin account, then C:\Windows\Temp will not get cleaned (and I assume any other items set to be cleaned by Health Check or Custom Clean, but I did not test this). I tested this on 2 different PCs, both with same Windows build, same CCleaner version, same security permissions on C:\Windows\Temp. I also re-installed Windows 10 on a blank drive then installed CCleaner. Every time I found the task will run only when the admin user account is logged on.

You can change the task to use a non-admin account or change it so that will run when the admin user is not logged in. Then C:\Windows\Temp will be cleaned. I tested that this change will persist on a reboot and it will. It will also persist if you change any of CCleaner's options, except for the options in Options>Scheduling (either as the admin user or as the non-admin user). If you change the time that the cleaning is done in Options>Scheduling, CCleaner will change the task back to use the admin user account and run only when the admin user is logged in.