Pages

Tuesday, November 08, 2011

Attachments remain in the Outlook Secure Temporary File folder when you exit Outlook 2010 or Outlook 2007

 

You exit Microsoft Office Outlook 2010 or Microsoft Office Outlook 2007 while email attachments are open. These attachments are from email messages that are in a secure Outlook folder.

Alternatively, Outlook unexpectedly closes. When this occurs, the attachments remain in the "Outlook Secure Temporary File" folder. This occurs even if you close the attachments after you exit Outlook.  Additionally, if you open the attachment to the email message from the Preview pane, you do not receive a prompt to save changes when you exit Outlook.

This problem occurs because Outlook 2010 and Outlook 2007 cannot remove the temporary file or dispose of the secure temporary folder while the attachments are open.

When you open file attachments that are considered safe, Outlook 2010 and Outlook 2007 puts these attachments in a subdirectory of the Temporary Internet Files directory as an additional precaution. When Outlook 2010 or Outlook 2007 first tries to use a temporary file, it examines the registry to determine whether the following value exists, depending on your version of Outlook.

Outlook 2010

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

or

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

Value Name: OutlookSecureTempFolder
Data Type: REG_SZ

Outlook 2007

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

or

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

Value Name: OutlookSecureTempFolder
Data Type: REG_SZ

If the value exists, and if the value contains a valid path, Outlook 2010 or Outlook 2007 uses that location for its temporary files.

If the registry value does not exist, or if the value points to an invalid location, Outlook 2010 or Outlook 2007 creates a new subdirectory under the Temporary Internet Files directory and then puts the temporary file in the new subdirectory. The name of the new subdirectory is unknown and is randomly generated, depending on your version of Outlook. In this situation, to locate this subdirectory, depending on your version of Windows and your version of Outlook, follow these steps.

For Windows 7 and for Windows Vista:

  1. Click Start, and then click Computer.
  2. Click Organize, and then click Folder and search options.
  3. On the View tab, make the following changes:
    1. Select the Show hidden files, folders, and drives option.
    2. Click to clear the Hide protected operating system files (Recommended) check box.
  4. Click OK.
  5. Continue with the next set of steps based on your version of Outlook.
    For Outlook 2010 and for Outlook 2007:
    1. Click Start, click All Programs, click Accessories, and then click Run.
    2. In the Run dialog box, type the following command (including the quotation marks), and then click OK.

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

    3. Open the subfolder under the Content.Outlook folder whose folder name is a randomly generated sequence of letters and numbers. For example, FW0B6RID.
      Note There may be more than one subfolder with a randomly generated name under the Content.Outlook folder.

Source

http://support.microsoft.com/kb/817878

1 comment:

miketraxs said...

You can setup a batch file with the following commands. Then set it in the all user startup so it runs for every user that logs into the pc. It will clear the folder everytime they login.



ATTRIB "C:\Users\%username%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\*.*" -R /s



del "C:\Users\%username%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\" /s /q



The files in the folder below this are set with the read only attribute. You need to clear that attribute with the first command. Then you can delete everything in it with the second command.