How do I get Outlook to clear its cache when users log off

I have a user that every once and a while when the cache get filled up, can't open certain secure e-mail attachments.
bushuf77Asked:
Who is Participating?
 
TBK-ConsultingCommented:
I actually script it from Kaseya to the machine so it is not in a real login script on the GPO ... but the location of the registry key is as follows -- HKCU\Software\Microsoft\Office\##.#\Outlook\Security\OutlookSecureTempFolder

You get the value of the folder from that key and then delete the contents of the directory to solve the issue ... I wish I could be of more help but do not have a 'real' login script for you to use ... I am sorry.

BTW, the ##.# is for the version of Office you are using, 14.0 is for 2010, 13.0 for 2007, 12.0 for 2003, etc.
0
 
TBK-ConsultingCommented:
We have the same issue and wrote a login script that clears the outlook secure temp file at login ... the script gets the location from the registry and then deletes the contents of that directory.
0
 
jangeadorCommented:
The Outlook cache should be located in %APPDATA%\Local\Microsoft\Outlook\Outlook.ost. You can delete this and it will clear the cache as long as outlook is closed.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
bushuf77Author Commented:
TBK-Consulting
Can you possibly submit the script so I can adopt it.

Thanks
0
 
TBK-ConsultingCommented:
@jangeador - that won't solve the problem of not being able to view attachments ... what @bushuf77 is experiencing is the known issue with Outlook that the secure temp folder fills up with 100 of the same named items (attachment 01, attachment02, etc.) then it can no longer view these attachments - I run into this all the time, expecially with TIF files as attachments from fax servers ... you have to delete the contents of that outlook secure temp folder in order to view the attachments again ... it's a real pain in the a$$ that microsoft has only acknowledged the problem and not fixed it .... it's been a problem for years ...
0
 
bushuf77Author Commented:
Thanks guys,

I know how to fix the problem temporarily, I found the fix on Google. I'm just interested in the script TBK-Consulting was talking about because we also have a few users on dummy terminals amd I'd like for there cache to clear out upon login to save space on the server. :-)
0
 
TBK-ConsultingCommented:
I'd imagine you would need to use REG QUERY command to get the key value and then set it to a variable and then use that to delete the contents of the directory
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.