Open in the explorer

Message handling

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Outlook 2016 › Outlook Options › Preferences › E-mail Options
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
outlk16.admx
Internal name
outlk16/L_Messagehandling

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 DWord

Disable

# 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 SilentlyContinue

Options (5)

LabelControlRegistry valueREG typeConstraints / details
After moving or deleting an open item:L_aftermovingordeletinganopenitem0Drop-down listenumaftermoveREG_DWORD
Default choice (UI): #2
LabelValue
Open the next itemREG_DWORD = 0
Return to the current folderREG_DWORD = 1
Open the previous itemREG_DWORD = 2
Close original message when reply or forwardL_CloseoriginalmessagewhenreplyorforwardCheck boxbooleancloseorigREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Save copies of messages in Sent Items folderL_SavecopiesofmessagesinSentItemsfolderCheck boxbooleansavesentREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Autosave unsent every xx minutes (0=No AutoSave):L_Autosaveunsenteveryxxminutes0NoAutoSaveNumeric boxdecimalautosavetimein software\policies\microsoft\office\16.0\common\mailsettingsREG_DWORD
Min: 0 · Max: 99 · Default (UI): 3
Automatically clean up plain text messagesL_AutomaticallycleanupplaintextmessagesCheck boxbooleanautoformatplaintextin software\policies\microsoft\office\16.0\outlook\options\mailREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.