Message handling: registry value aftermove and 2 more (preferences)UserHKCU\software\policies\microsoft\office\16.0\outlook\preferences

Policy ID
L_Messagehandling
Scope
User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Category
Microsoft Outlook 2016 › Outlook Options › Preferences › E-mail Options

Registry

aftermove

REG_DWORDUser
Enabled value
Depends on the option value
Element
After moving or deleting an open item:
Options
ItemStored value
Open the next item0
Return to the current folder1
Open the previous item2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences]

; Options (use only one)
; Open the next item
"aftermove"=dword:00000000
; Return to the current folder
"aftermove"=dword:00000001
; Open the previous item
"aftermove"=dword:00000002
CMD
:: Options (use only one)

:: Open the next item
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "aftermove" /t REG_DWORD /d 0 /f
:: Return to the current folder
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "aftermove" /t REG_DWORD /d 1 /f
:: Open the previous item
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "aftermove" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null

# Options (use only one)
# Open the next item
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'aftermove' -PropertyType DWord -Value 0 -Force | Out-Null
# Return to the current folder
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'aftermove' -PropertyType DWord -Value 1 -Force | Out-Null
# Open the previous item
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'aftermove' -PropertyType DWord -Value 2 -Force | Out-Null

closeorig

REG_DWORDUser
Checked
1
Unchecked
0
Element
Close original message when reply or forward
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences]

; Options (use only one)
; Checked
"closeorig"=dword:00000001
; Unchecked
"closeorig"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "closeorig" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "closeorig" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'closeorig' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'closeorig' -PropertyType DWord -Value 0 -Force | Out-Null

savesent

REG_DWORDUser
Checked
1
Unchecked
0
Element
Save copies of messages in Sent Items folder
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences]

; Options (use only one)
; Checked
"savesent"=dword:00000001
; Unchecked
"savesent"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "savesent" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "savesent" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'savesent' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'savesent' -PropertyType DWord -Value 0 -Force | Out-Null

autosavetime

REG_DWORDUser
Enabled value
Depends on the option value
Element
Autosave unsent every xx minutes (0=No AutoSave):
Value type
REG_DWORD
Minimum value
0
Maximum value
99
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\mailsettings]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"autosavetime"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\software\policies\microsoft\office\16.0\common\mailsettings" /v "autosavetime" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings' -Name 'autosavetime' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

autoformatplaintext

REG_DWORDUser
Checked
1
Unchecked
0
Element
Automatically clean up plain text messages
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\options\mail]

; Options (use only one)
; Checked
"autoformatplaintext"=dword:00000001
; Unchecked
"autoformatplaintext"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "autoformatplaintext" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "autoformatplaintext" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'autoformatplaintext' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'autoformatplaintext' -PropertyType DWord -Value 0 -Force | Out-Null