Attachment Secure Temporary Folder
Explanation
This policy setting allows you to specify a folder path for the Secure Temporary Files folder rather than using the one that is randomly generated by Outlook.
If you enable this policy setting, you can specify a folder path for the Security Temporary Files folder rather than using the one that is randomly generated by Outlook.
If you disable or do not configure this policy setting, Outlook will assign the Secure Temporary Files folder a different random name for each user.
Important - If you must use a specific folder for Outlook attachments, Microsoft recommends that you use a local directory (for best performance), that you place the folder under the Temporary Internet Files folder (to benefit from the enhanced security on that folder), and that the folder name is unique and difficult to guess.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: outlk16/L_AttachmentSecureTemporaryFolder
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enter the Secure Folder path
Set-ItemProperty -Path $k -Name 'outlooksecuretempfolder' -Value '<value>' -Type StringDisable
# Disable: outlk16/L_AttachmentSecureTemporaryFolder
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": outlk16/L_AttachmentSecureTemporaryFolder
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\security'
Remove-ItemProperty -Path $k -Name 'outlooksecuretempfolder' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Enter the Secure Folder pathL_EntertheSecureFolderpath | Text boxtext | outlooksecuretempfolder | REG_SZ |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.