Barkley Bees <(E-Mail Removed)> wrote:
> Trying to find the best way to have XP client PC's clear their
> Outlook 2003 temporary folder data on system shutdown (C:\Documents
> and Settings\%userprofile%\Local Settings\Temporary Internet
> Files\OLK*). Can this be accomplished using Group Policy to set the
> "shutdown script" and use something like the below in a .bat file:
>
> --------------------------------------------------------------------------------
> cd %userprofile%\Local Settings\Temporary Internet Files\OLK*
> del *.* /s /f /q
> --------------------------------------------------------------------------------
>
> Can a .bat file be assigned as a 'shutdown script' via group policy?
> Appreciate any feedback or optional advice. Thank you.
As mentioned, this won't work if that isn't the location - and the location
can vary. The commands above could do Very Scary Things to your computer.
See
http://www.groovypost.com/howto/micr...ry-olk-folder/
for info on Outlook's temp folder.
Presuming Outlook is using the normal/defaults, which are indeed in a
subfolder under temp internet files, why not delete *all* your Internet
cache files via a shutdown script? I have the following batch file running
as a GPO-applied shutdown script in most of the networks I support....I
cribbed it shamelessly from some nice stranger on the internet.
--------------------
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\"