I thought I’d share this little gem with you. It’s something I’ve written to clear the browser caches for all users (yes!! all users, simultaneously) on a terminal server [Link Below] – works on desktops as well (or any other directories, just modify the script appropriately). It takes around 30 seconds to 5 mins to complete (user # dependant). It will save you disk space and precious time.
This is great for squeezing the last ‘bits’ of space from your terminal server. In my case, we have a 10% threshold for space remaining and if I’m getting towards 9% or 8% left with no real space hogs, this script can claw me back above 10%, sometimes regaining 2GB or 3GB of space, but I have cleared upto 30GB!!!!
This saves you hours of time trawling user data for tit-bits of space. Place in a scheduled task for automation.
Before you run this, please read the script and gain an understanding of it’s purpose. I cannot be held responsible for your decision to run this. This has been tried and tested but you must understand that your environment will be unique.
(It may need a little tweaking for your specific environment. The script clears Google, Mozilla and IE caches as well as temporary Windows directories. Ensure it is OK to delete these before running the script. The recycle bin is also emptied. Remove lines from the script if you do not wish for certain directories to be cleaned.)
I have moved this into my Github. You can find the script here:
All I ask is that you don’t republish this – Please link people back to this page. Feel free to send me a small donation if this has helped you. It will enable me to continue development of this and other tools. Thank you.