Message handling
Explanation
You can use this setting to specify various options for how e-mail messages are handled.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences- 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_Messagehandling
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# After moving or deleting an open item
# Possible options:
# Open the next item = 0
# Return to the current folder = 1
# Open the previous item = 2
Set-ItemProperty -Path $k -Name 'aftermove' -Value 2 -Type DWord
# Close original message when reply or forward
# unchecked: 0
Set-ItemProperty -Path $k -Name 'closeorig' -Value 1 -Type DWord
# Save copies of messages in Sent Items folder
# unchecked: 0
Set-ItemProperty -Path $k -Name 'savesent' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Autosave unsent every xx minutes (0=No AutoSave)
Set-ItemProperty -Path $k -Name 'autosavetime' -Value 3 -Type DWord # between 0 and 99
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Automatically clean up plain text messages
# unchecked: 0
Set-ItemProperty -Path $k -Name 'autoformatplaintext' -Value 1 -Type DWordDisable
# Disable: outlk16/L_Messagehandling
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": outlk16/L_Messagehandling
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences'
Remove-ItemProperty -Path $k -Name 'aftermove' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'closeorig' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'savesent' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings'
Remove-ItemProperty -Path $k -Name 'autosavetime' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail'
Remove-ItemProperty -Path $k -Name 'autoformatplaintext' -ErrorAction SilentlyContinueOptions (5)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| After moving or deleting an open item:L_aftermovingordeletinganopenitem0 | Drop-down listenum | aftermove | REG_DWORD | Default choice (UI): #2
| ||||||||
| Close original message when reply or forwardL_Closeoriginalmessagewhenreplyorforward | Check boxboolean | closeorig | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Save copies of messages in Sent Items folderL_SavecopiesofmessagesinSentItemsfolder | Check boxboolean | savesent | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Autosave unsent every xx minutes (0=No AutoSave):L_Autosaveunsenteveryxxminutes0NoAutoSave | Numeric boxdecimal | autosavetimein software\policies\microsoft\office\16.0\common\mailsettings | REG_DWORD | Min: 0 · Max: 99 · Default (UI): 3 | ||||||||
| Automatically clean up plain text messagesL_Automaticallycleanupplaintextmessages | Check boxboolean | autoformatplaintextin software\policies\microsoft\office\16.0\outlook\options\mail | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.