Dgreenbaum
asked on
clearing large java cache from user profiles
We are running two Windows 2003 R2 sp2 servers as Terminal Servers for a call center. We are not using Terminal Server Profiles, but rather the regular profile settings in the Users Active Directory attributes. There are around 200 profiles. The company has a pretty easy Internet Use policy while people are between calls (picture people sitting around something like a firehouse waiting for the fire alarm to go off). As a result in each users profile in Application Data\Sun\Java\Deployment\c ache\ there are subfolders that are building up in size. It is clearly a result of large amounts of web browsing.
All of this leads to ever increasing log on times.
Changing the settings in the Java Control panel just seems to effect the user logged on so doing anything as administrator doesn't help. Does any one have a strategy for clearing this cache on logoff? Or, perhaps limiting the size of these subfolders?
All of this leads to ever increasing log on times.
Changing the settings in the Java Control panel just seems to effect the user logged on so doing anything as administrator doesn't help. Does any one have a strategy for clearing this cache on logoff? Or, perhaps limiting the size of these subfolders?
I would say create a script to delete the cache files every night.
ASKER
Thanks, I'll look into these suggestions.
ASKER
I'll look into writing a script that can go into a profiles folder and delete a subfolder in the Application Data folder in each of the users profile folders. Any ideas on this type of scripting?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
rmdir {directory} /S /Q
I would take a read of the rmdir help file with /? because the /S command deletes the starting directory as well. So you may need to make the batch file a few lines.