Temporary Internet Files

  • Thread starter Thread starter Bruce Schulte
  • Start date Start date
B

Bruce Schulte

Can anyone suggest what GP I can set on a Windowss 2000
Domain so that users with roaming profiles have their
Temporary Internet Files removed from the client PC when
they logout?

Alternatively, I'd like to limit either the disk space
allocated for those files and / or the length of time that
files are kept.

I've got multiple users on PC's with small drives and the
drives keep filing up.

Thanks
 
Define the follow as Logoff script within a GPO.

HOW TO: Assign Scripts in Windows 2000:
http://support.microsoft.com/default.aspx?scid=kb;en-us;322241

' #SCRIPT CODE (Past it in notepad and save the file as an Visual Basic
Script .vbs file)
Set net = Wscript.CreateObject("Wscript.Network")
Set objFSO = CreateObject("Scripting.FileSystemObject")

strComputer = "."
StrProfileStore = "C:\Documents and Settings\"
StrInternetTempStore = "\local settings\Temporary Internet Files\"
StrUserName = net.UserName

StrDeleteInternetTempStore = StrProfileStore + StrUserName +
StrInternetTempStore

objFSO.DeleteFile StrDeleteInternetTempStore

--
Regards,

Christoffer Andersson
No email replies please - reply in the newsgroup
If the information was help full, you can let me know at:
http://www.itsystem.se/employers.asp?ID=1
 
Back
Top