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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
bushuf77Author Commented:
TBK-Consulting
Can you possibly submit the script so I can adopt it.

Thanks
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.