Solved

Temporary Internet Files

Posted on 2006-06-28
10
399 Views
Last Modified: 2010-04-13
I have 100+ windows 2000 & Xp workstations on my network. I'm trying to find a way via a script or registry tweak to purge out the temporary internet files every time a user logs off. Any thoughts?
0
Comment
Question by:compdigit44
10 Comments
 
LVL 48

Accepted Solution

by:
Jay_Jay70 earned 75 total points
ID: 17006189
0
 
LVL 1

Assisted Solution

by:davidsummers
davidsummers earned 75 total points
ID: 17006982
Below is a Custom ADM file that can be used to set the IE behaviour by group policy.
There is no resident out of the box policy for this setting, so a custom adm file needs to be used. This template will give us the option to add the setting  "Empty Temporary Internet Files folder when browser is closed" and set that to enabled.
This setting will cause IE to clear it’s local Cache when the user closes their browser, therefore keeping the directory size of the temporary internet files down to a minimum.

Copy this into notepad and save the file as an .ADM file. This will allow you to import it as a template into a Group policy Object and then apply that to your users.



CLASS USER
CATEGORY "Internet Explorer User Settings"
 POLICY "Empty Temporary Internet Files folder when browser is closed"
 EXPLAIN !!ExplainEmptyTemporary
 KEYNAME "SOFTWARE|Microsoft|Windows|CurrentVersion|Internet Settings|Cache"
  PART "Empty Temporary Internet Files folder when browser is closed"
  CHECKBOX
  VALUENAME "Persistent"
  VALUEON NUMERIC 0
  VALUEOFF NUMERIC 1
  END PART
 END POLICY
END CATEGORY
[STRINGS]
ExplainEmptyTemporary=Empty Temporary Internet Files folder when browser is closed\n\nI suggest that you keep this option disabled to prevent repeated downloads of frequently accessed web content.
0
 
LVL 26

Assisted Solution

by:MidnightOne
MidnightOne earned 75 total points
ID: 17009677
compdigit44:

Adding onyo Jay_jay70's answer, this is the batch file you want:

@echo off
rd "%userprofile%\local settings\temporary internet files\content.ie5" /s/q
rd "%userprofile%\local settings\history\history.ie5" /s/q
del "%userprofile%\cookies\*.*" /s/q/f
del "%temp%\*.*" /s/f/q
del "%tmp%\*.*" /s/f/q

Note that this also flushes the local history, cleans out cookies, and blows awat the contents of the TEMP directories.

HAND

MidnightOne
0
 
LVL 19

Author Comment

by:compdigit44
ID: 17009980
Great answers everyone. Regarding davidsummers responce. I don't have active directory in place yet. Is it possible to copy the *.adm file to all workstations via a scipt then have the same script run secedit???
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 17014335
it is possible i am sure - all things are somehow, but much simpler with a simple batch until you have AD, then your whole world gets better!
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 17014336
it is possible i am sure - all things are somehow, but much simpler with a simple batch until you have AD, then your whole world gets better!
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 17014338
it is possible i am sure - all things are somehow, but much simpler with a simple batch until you have AD, then your whole world gets better!
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 17014342
damn freikin internet - i apologise i was getting errors!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Active directory user account audit 4 728
windows 2000 3 424
demote crashed domain controller (server 2000) 3 997
Recovering backup .Qic files on Windows 7 6 2,183
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now