PC Review


Reply
Thread Tools Rate Thread

Delete temporary files on client on shutdown

 
 
barkley bees
Guest
Posts: n/a
 
      7th Feb 2008
We would like to implement a process so that client PC's (Windows XP) will
automatically clear all temporary files (IE, Outlook, etc) upon shutdown/log
off. Is this possible to implement and distribute via a GPO? If not, can
anyone suggest a good solution for this? Thank you.

bb


 
Reply With Quote
 
 
 
 
Lanwench [MVP - Exchange]
Guest
Posts: n/a
 
      7th Feb 2008
barkley bees <(E-Mail Removed)> wrote:
> We would like to implement a process so that client PC's (Windows XP)
> will automatically clear all temporary files (IE, Outlook, etc) upon
> shutdown/log off. Is this possible to implement and distribute via a
> GPO? If not, can anyone suggest a good solution for this? Thank you.
>
> bb


Here's a simple way - set up a computer shutdown script containing the
following:

-----------------------------------------------

FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO DEL/S/F/Q
"C:\Documents and Settings\%%A\Local Settings\Temporary Internet Files\*.*"
FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO RD/S/Q "C:\Documents
and Settings\%%A\Local Settings\Temporary Internet Files\"


 
Reply With Quote
 
Barkley Bees
Guest
Posts: n/a
 
      7th Feb 2008
Thanks for your reply Lawrence. I have since been told by our management
that our focus will only be on Outlook 2003 (not IE temp files). So we will
need to delete only the files in:

"C:\Documents and Settings\user\Local Settings\Temporary Internet
Files\OLK*"

The question becomes, how do you determine the OLK* folder name of any given
client (to delete is contents) since they appear to be randomly named?


"Lanwench [MVP - Exchange]"
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> barkley bees <(E-Mail Removed)> wrote:
>> We would like to implement a process so that client PC's (Windows XP)
>> will automatically clear all temporary files (IE, Outlook, etc) upon
>> shutdown/log off. Is this possible to implement and distribute via a
>> GPO? If not, can anyone suggest a good solution for this? Thank you.
>>
>> bb

>
> Here's a simple way - set up a computer shutdown script containing the
> following:
>
> -----------------------------------------------
>
> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO DEL/S/F/Q
> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet
> Files\*.*"
> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO RD/S/Q
> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet Files\"
>
>


Thanks for your reply Lanwench.


 
Reply With Quote
 
Barkley Bees
Guest
Posts: n/a
 
      7th Feb 2008
I don't suppose something like this could be added to the shutdown script:

cd %userprofile%\Local Settings\Temporary Internet Files\OLK*
del *.* /s /f /q



"Barkley Bees" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for your reply Lawrence. I have since been told by our management
> that our focus will only be on Outlook 2003 (not IE temp files). So we
> will need to delete only the files in:
>
> "C:\Documents and Settings\user\Local Settings\Temporary Internet
> Files\OLK*"
>
> The question becomes, how do you determine the OLK* folder name of any
> given client (to delete is contents) since they appear to be randomly
> named?
>
>
> "Lanwench [MVP - Exchange]"
> <(E-Mail Removed)> wrote in
> message news:(E-Mail Removed)...
>> barkley bees <(E-Mail Removed)> wrote:
>>> We would like to implement a process so that client PC's (Windows XP)
>>> will automatically clear all temporary files (IE, Outlook, etc) upon
>>> shutdown/log off. Is this possible to implement and distribute via a
>>> GPO? If not, can anyone suggest a good solution for this? Thank you.
>>>
>>> bb

>>
>> Here's a simple way - set up a computer shutdown script containing the
>> following:
>>
>> -----------------------------------------------
>>
>> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO DEL/S/F/Q
>> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet
>> Files\*.*"
>> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO RD/S/Q
>> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet Files\"
>>
>>

>
> Thanks for your reply Lanwench.
>



 
Reply With Quote
 
Florian Frommherz [MVP]
Guest
Posts: n/a
 
      7th Feb 2008
Howdie!

Barkley Bees schrieb:
> I don't suppose something like this could be added to the shutdown script:
>
> cd %userprofile%\Local Settings\Temporary Internet Files\OLK*
> del *.* /s /f /q


How about a Group Policy that deletes the "Temporary Internet Files"
upon browser (IE) close?

CLASS USER

CATEGORY "Custom Internet Explorer Settings"

POLICY "Delete Temporary Internet Files on IE close"
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Cache"
VALUENAME "Persistent"
VALUEON NUMERIC 0 VALUEOFF NUMERIC 1
END POLICY
END CATEGORY

cheers,

Florian
--
Microsoft MVP - Windows Server - Group Policy.
eMail: prename [at] frickelsoft [dot] net.
blog: http://www.frickelsoft.net/blog.
 
Reply With Quote
 
Barkley Bees
Guest
Posts: n/a
 
      7th Feb 2008
Hi Florian. Thanks for your suggesting! But our aim is only to delete
temporary Outlook 2003 files (%userprofile%\Local Settings\Temporary
Internet Files\OLK*) at log off or shutdown, not the IE cache itself.


"Florian Frommherz [MVP]" <(E-Mail Removed)> wrote
in message news:%(E-Mail Removed)...
> Howdie!
>
> Barkley Bees schrieb:
>> I don't suppose something like this could be added to the shutdown
>> script:
>>
>> cd %userprofile%\Local Settings\Temporary Internet Files\OLK*
>> del *.* /s /f /q

>
> How about a Group Policy that deletes the "Temporary Internet Files" upon
> browser (IE) close?
>
> CLASS USER
>
> CATEGORY "Custom Internet Explorer Settings"
>
> POLICY "Delete Temporary Internet Files on IE close"
> KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache"
> VALUENAME "Persistent"
> VALUEON NUMERIC 0 VALUEOFF NUMERIC 1
> END POLICY
> END CATEGORY
>
> cheers,
>
> Florian
> --
> Microsoft MVP - Windows Server - Group Policy.
> eMail: prename [at] frickelsoft [dot] net.
> blog: http://www.frickelsoft.net/blog.



 
Reply With Quote
 
Florian Frommherz [MVP]
Guest
Posts: n/a
 
      7th Feb 2008
Howdie!

Barkley Bees schrieb:
> Hi Florian. Thanks for your suggesting! But our aim is only to delete
> temporary Outlook 2003 files (%userprofile%\Local Settings\Temporary
> Internet Files\OLK*) at log off or shutdown, not the IE cache itself.


Ah - okay. In your initial posting, you mentioned IE as well. Then
you'll have to stick with scripting.

cheers,

Florian
--
Microsoft MVP - Windows Server - Group Policy.
eMail: prename [at] frickelsoft [dot] net.
blog: http://www.frickelsoft.net/blog.
 
Reply With Quote
 
Lanwench [MVP - Exchange]
Guest
Posts: n/a
 
      7th Feb 2008
Barkley Bees <(E-Mail Removed)> wrote:
> Thanks for your reply Lawrence. I have since been told by our
> management that our focus will only be on Outlook 2003 (not IE temp
> files). So we will need to delete only the files in:
>
> "C:\Documents and Settings\user\Local Settings\Temporary Internet
> Files\OLK*"
>
> The question becomes, how do you determine the OLK* folder name of
> any given client (to delete is contents) since they appear to be
> randomly named?


I don't know, but since temp file folders fill up with gunk rapidly, and
these folders are *not* entirely purged within IE when you choose the option
to delete them, why not just do the easy and efficient thing and purge them
all with the command line/batch file stuff? I do this at all my client
offices.

>
>
> "Lanwench [MVP - Exchange]"
> <(E-Mail Removed)> wrote in
> message news:(E-Mail Removed)...
>> barkley bees <(E-Mail Removed)> wrote:
>>> We would like to implement a process so that client PC's (Windows
>>> XP) will automatically clear all temporary files (IE, Outlook, etc)
>>> upon shutdown/log off. Is this possible to implement and distribute
>>> via a GPO? If not, can anyone suggest a good solution for this?
>>> Thank you. bb

>>
>> Here's a simple way - set up a computer shutdown script containing
>> the following:
>>
>> -----------------------------------------------
>>
>> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO DEL/S/F/Q
>> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet
>> Files\*.*"
>> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO RD/S/Q
>> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet
>> Files\"

>
> Thanks for your reply Lanwench.




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Client/Publisher Temporary Files? Treeman Windows XP Basics 0 8th Jun 2007 04:23 PM
Web/Client Publishing Temporary Files Joe Windows XP General 3 5th Jul 2005 06:57 PM
Web Client/Publisher Temporary Files Peter Windows XP Performance 0 3rd Mar 2005 09:59 PM
web client/publisher temporary won't delete =?Utf-8?B?U3RldmVa?= Windows XP Basics 1 11th Mar 2004 10:06 PM
IWebBrowser2 ActiveX , Does not releases temporary internet files when Closed, despite delete Temporary option of Browser (Internet Explorer)is Selected. =?Utf-8?B?VlpVbWFy?= Microsoft VC .NET 0 21st Feb 2004 07:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:09 PM.