Fix OutlookSecureTempFolder issues (Kixtart)
From espinola.net
This Kixtart scriptlet determines the location of the Outlook Secure Temporary File folder, and deletes it (the folder and all its contents). Outlook will automatically recreate this folder with a randomized name if it does not exist. Outlook does not need to be restarted for this to occur.
This is a user-modifiable folder within their profile directory, so this script can be run in the security context of the logged-in user.
- Applicable to:
- Microsoft Outlook 97
Microsoft Outlook 98
Microsoft Outlook 2000
Microsoft Outlook 2002
Microsoft Outlook 2003
Microsoft Outlook 2007
;------------------------------------------------------------------------------;
; Fix OSTF folder and rendering corruption
;------------------------------------------------------------------------------;
$O97OSTF=ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Security","OutlookSecureTempFolder")
$O98OSTF=ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\8.5\Outlook\Security","OutlookSecureTempFolder")
$O2KOSTF=ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security","OutlookSecureTempFolder")
$O2K2OSTF=ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security","OutlookSecureTempFolder")
$O2K3OSTF=ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security","OutlookSecureTempFolder")
$O2K7OSTF=ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security","OutlookSecureTempFolder")
Run '%COMSPEC% /C RD /S /Q "$O97OSTF"'
Run '%COMSPEC% /C RD /S /Q "$O98OSTF"'
Run '%COMSPEC% /C RD /S /Q "$O2KOSTF"'
Run '%COMSPEC% /C RD /S /Q "$O2K2OSTF"'
Run '%COMSPEC% /C RD /S /Q "$O2K3OSTF"'
Run '%COMSPEC% /C RD /S /Q "$O2K7OSTF"'