Hi everyone

We sometimes would run CC cleaner to clean up temps files etc on a users account on their machine within our domain .

My thinking is that we could run an bat file each time the user logs in to do this.

Not to run CC but to clear out the folder that holds the temp cache belonging to the user.

Now the question is, i am going to set it to clear out the following folder

C:\Users$username$\AppData\Local\Temp

Is there any other folders that should be included?

Thanks

5 Spice ups

CCleaner is a solution for an imaginary problem.

If you think you need to clear temp files on Windows profiles, just run “cleanmgr” - and you will get everything except System Files. Theoretically, cleanmgr could be scripted, see below.

Capture.png

2 Spice ups

Yep - make it a scheduled task for bootup.

thanks for the suggestions. Yea i dont like CC at all hence why im trying to get away from it. I just want something that would take away all temp files for chrome etc when the user logs in

Another thing to add to your script or task -

del C:\Users%username%\AppData\Local\Google\Chrome\User Data\Default\Cache*.*

1 Spice up

I delete all content from Temporary internet files / INetCache:

C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files - for windows 7
C:\Users\username\AppData\Local\Microsoft\Windows\INetCache - for windows 8, 10

1 Spice up

You can also use GPO for that

1 Spice up

I would love to set the rules in the GPO , but who ever set them up before i started work here didn’t do it correctly and every time i mention GPO it falls on deaf ears!