Tip 27: Attachments and the SecureTemp Folder

When you open attachments on email directly from Outlook, a copy is written to a temporary folder on your hard drive. This is so that the virus scanner can check it before it is opened. The folder Outlook uses is under the temp internet folders. This offers more security as only your user account and the computer administrator account can view the files under this folder. The only way to avoid "losing" attachments in this well hidden folder is to save them to your hard drive, before opening. Few people do this (myself included).

Outlook places attachments that are opened from Outlook items in a SecureTemp folder, which is well hidden under the Temporary Internet Files folder at

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

When you close the open attachment and the message is still in open or in preview, the temporary file is deleted from the SecureTemp folder. If you close the message or preview another message, the link is broken and the file is left in the SecureTemp folder.

You can move the location of the SecureTemp folder by editing a registry key, after first creating the folder on your hard drive.

In Windows XP, the securetemp folder for Outlook 2000 to 2003 is at

C:\Documents and Settings\user\Local Settings\Temporary Internet Files\OLK*
The OLK directory will end in a series of numbers.

Outlook 2007 and 2010 uses

C:\Documents and Settings\user\Local Settings\Temporary Internet Files\Content.Outlook\8A0VMD3A
where 8A0VMD3A can be any random characters.

Vista and Windows 7 moves the Temp Internet folder to

C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\
so you'll need to look there for the OLK or Content.Outlook folder.

To view the securetemp folder, at Start menu, run, type

%temp%

and expand the Temporary Internet Folders branch to show the OLK* folder(s) in the Folder list (left side of screen). Click the Folders button in the Explorer toolbar (or View, Explorer Bar, Folders) if the folder list is not shown.

In Vista and Windows 7 you can go to the folder location by replacing username with your username below then copy and paste into the address bar of Windows Explorer then press Enter. Browse to the subfolder.

C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\

You can also find the location of the folder (and move it) by looking in the registry at the following location:

If using Outlook 2010:

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security

Outlook 2007:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security

Outlook 2003:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security

If using Outlook 2002:

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security

Look at the value for OutlookSecureTempFolder. You can change the folder to point to a new location, but be sure the new folder exists before changing it in the registry.

Add a String Value called OutlookSecureTempFolder if it doesn't already exist, then enter the path to the new folder location as the data string.

For more information, see:

Outlook 2000 – KB 249793

Outlook 2002/2003 KB 296115

Step-by-step help with screenshots

Published August 28, 2003. Last reviewed on December 27, 2013.