[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

Temporary Internet Files

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
compdigit44
Asked:
compdigit44
3 Solutions
 
davidsummersCommented:
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
 
MidnightOneCommented:
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
compdigit44Author Commented:
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
 
Jay_Jay70Commented:
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
 
Jay_Jay70Commented:
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
 
Jay_Jay70Commented:
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
 
Jay_Jay70Commented:
damn freikin internet - i apologise i was getting errors!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now