On replies and forwards: registry value replystyle and 2 more (preferences)UserHKCU\software\policies\microsoft\office\16.0\outlook\preferences
- Policy ID
- L_Onrepliesandforwards
- 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
replystyle
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- When replying to a message:
| Item | Stored value |
|---|---|
| Do not include orginal message | 0 |
| Attach orginal message | 1 |
| Include original message text | 2 |
| Include and indent org. message text | 3 |
| Prefix each line of the org. message | 1000 |
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) ; Do not include orginal message "replystyle"=dword:00000000 ; Attach orginal message "replystyle"=dword:00000001 ; Include original message text "replystyle"=dword:00000002 ; Include and indent org. message text "replystyle"=dword:00000003 ; Prefix each line of the org. message "replystyle"=dword:000003e8
CMD
:: Options (use only one) :: Do not include orginal message reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "replystyle" /t REG_DWORD /d 0 /f :: Attach orginal message reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "replystyle" /t REG_DWORD /d 1 /f :: Include original message text reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "replystyle" /t REG_DWORD /d 2 /f :: Include and indent org. message text reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "replystyle" /t REG_DWORD /d 3 /f :: Prefix each line of the org. message reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "replystyle" /t REG_DWORD /d 1000 /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) # Do not include orginal message New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'replystyle' -PropertyType DWord -Value 0 -Force | Out-Null # Attach orginal message New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'replystyle' -PropertyType DWord -Value 1 -Force | Out-Null # Include original message text New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'replystyle' -PropertyType DWord -Value 2 -Force | Out-Null # Include and indent org. message text New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'replystyle' -PropertyType DWord -Value 3 -Force | Out-Null # Prefix each line of the org. message New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'replystyle' -PropertyType DWord -Value 1000 -Force | Out-Null
forwardstyle
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- When forwarding a message:
| Item | Stored value |
|---|---|
| Attach orginal message | 1 |
| Include original message text | 2 |
| Include and indent org. message text | 3 |
| Prefix each line of the org. message | 1000 |
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) ; Attach orginal message "forwardstyle"=dword:00000001 ; Include original message text "forwardstyle"=dword:00000002 ; Include and indent org. message text "forwardstyle"=dword:00000003 ; Prefix each line of the org. message "forwardstyle"=dword:000003e8
CMD
:: Options (use only one) :: Attach orginal message reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "forwardstyle" /t REG_DWORD /d 1 /f :: Include original message text reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "forwardstyle" /t REG_DWORD /d 2 /f :: Include and indent org. message text reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "forwardstyle" /t REG_DWORD /d 3 /f :: Prefix each line of the org. message reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "forwardstyle" /t REG_DWORD /d 1000 /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) # Attach orginal message New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'forwardstyle' -PropertyType DWord -Value 1 -Force | Out-Null # Include original message text New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'forwardstyle' -PropertyType DWord -Value 2 -Force | Out-Null # Include and indent org. message text New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'forwardstyle' -PropertyType DWord -Value 3 -Force | Out-Null # Prefix each line of the org. message New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'forwardstyle' -PropertyType DWord -Value 1000 -Force | Out-Null
prefixtext
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Prefix each line with:
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "prefixtext"="<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\outlook\preferences" /v "prefixtext" /t REG_SZ /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\outlook\preferences' -Force | Out-Null New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'prefixtext' -PropertyType String -Value '<enter value>' -Force | Out-Null
markcomments
REG_DWORDUser- Checked
- 1
- Unchecked
- 0
- Element
- Allow user's comments to be marked
- 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\common\mailsettings] ; Options (use only one) ; Checked "markcomments"=dword:00000001 ; Unchecked "markcomments"=dword:00000000
CMD
:: Options (use only one) :: Checked reg add "HKCU\software\policies\microsoft\office\16.0\common\mailsettings" /v "markcomments" /t REG_DWORD /d 1 /f :: Unchecked reg add "HKCU\software\policies\microsoft\office\16.0\common\mailsettings" /v "markcomments" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings' -Force | Out-Null # Options (use only one) # Checked New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings' -Name 'markcomments' -PropertyType DWord -Value 1 -Force | Out-Null # Unchecked New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\mailsettings' -Name 'markcomments' -PropertyType DWord -Value 0 -Force | Out-Null