gents,<\/p>\n
my customer noticed (using CCleaner) that there are a lot of temporary files to be cleaned.<\/p>\n
I suggested that I take care of it centralized, maybe using a startup-GPO-script or using the windows scheduler.<\/p>\n
1st question is: I thought windows is handling temp files itself and deletes it - obviously it doesn’t.<\/p>\n
2nd question: could any problems occur if I clean %Temp%*.* and C.\\Windows\\Temp*.* ?<\/p>","upvoteCount":3,"answerCount":9,"datePublished":"2013-11-12T11:30:45.000Z","author":{"@type":"Person","name":"stefankusch","url":"https://community.spiceworks.com/u/stefankusch"},"acceptedAnswer":{"@type":"Answer","text":"
why not just use ccleaner and configure it to run on startup to clean out any files that you don’t want?<\/p>","upvoteCount":2,"datePublished":"2013-11-12T13:39:57.000Z","url":"https://community.spiceworks.com/t/clean-temporary-files-on-boot/254735/6","author":{"@type":"Person","name":"chris.hone","url":"https://community.spiceworks.com/u/chris.hone"}},"suggestedAnswer":[{"@type":"Answer","text":"
gents,<\/p>\n
my customer noticed (using CCleaner) that there are a lot of temporary files to be cleaned.<\/p>\n
I suggested that I take care of it centralized, maybe using a startup-GPO-script or using the windows scheduler.<\/p>\n
1st question is: I thought windows is handling temp files itself and deletes it - obviously it doesn’t.<\/p>\n
2nd question: could any problems occur if I clean %Temp%*.* and C.\\Windows\\Temp*.* ?<\/p>","upvoteCount":3,"datePublished":"2013-11-12T11:30:45.000Z","url":"https://community.spiceworks.com/t/clean-temporary-files-on-boot/254735/1","author":{"@type":"Person","name":"stefankusch","url":"https://community.spiceworks.com/u/stefankusch"}},{"@type":"Answer","text":"
It should not cause a problem deleting files in that folder, but keep in mind they are also seeing the temp folder for the user profile. So your script will need to include the C:/Users/%username%/AppData/Local/Temp/ to get those files also.<\/p>\n
Please take in mind I have not tried this before but it should be fine. I would definitely test before implementing.<\/p>","upvoteCount":4,"datePublished":"2013-11-12T11:45:03.000Z","url":"https://community.spiceworks.com/t/clean-temporary-files-on-boot/254735/2","author":{"@type":"Person","name":"psycholiquid","url":"https://community.spiceworks.com/u/psycholiquid"}},{"@type":"Answer","text":"
I will not recommend running a script that cleans temp files on boot, this will increase the overall boot time.<\/p>\n
Secondly I will advice to use Revo Uninstaller Free Edition to cleanup the garbage not only from Temp folder but from all other hidden folders created by many software. The Revo Cleanup tool is so far the best I have ever used.<\/p>","upvoteCount":1,"datePublished":"2013-11-12T12:06:26.000Z","url":"https://community.spiceworks.com/t/clean-temporary-files-on-boot/254735/3","author":{"@type":"Person","name":"syedali","url":"https://community.spiceworks.com/u/syedali"}},{"@type":"Answer","text":"
Add this to your log off script<\/p>\n
cleanmgr /sagerun 1<\/p>\n
it won’t slow your boot, but who cares about how long it takes to shutdown.<\/p>","upvoteCount":3,"datePublished":"2013-11-12T12:08:15.000Z","url":"https://community.spiceworks.com/t/clean-temporary-files-on-boot/254735/4","author":{"@type":"Person","name":"doctor-who","url":"https://community.spiceworks.com/u/doctor-who"}},{"@type":"Answer","text":"
Some installers/uninstallers (known example is AVG’s own removal kits for their software) place themselves in temp and must perform a reboot and then relaunch after the reboot to finish their cleaning. This may be the issue with other software removal or installation that requires a reboot in the middle of the process, if every time on boot you’re clearing the Temp locations. Maybe clearing everything older then a week or a few days would be better, to limit risk in situations like that.<\/p>","upvoteCount":2,"datePublished":"2013-11-12T12:12:41.000Z","url":"https://community.spiceworks.com/t/clean-temporary-files-on-boot/254735/5","author":{"@type":"Person","name":"jonathanlefeber","url":"https://community.spiceworks.com/u/jonathanlefeber"}},{"@type":"Answer","text":"