Custom markup warning: registry value custommarkupwarningUserHKCU\software\policies\microsoft\office\16.0\word\options
- Policy ID
- L_CustomMarkupWarning
- 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 Word 2016 › Word Options › Advanced
Registry
custommarkupwarning
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- Custom markup warning:
| Item | Stored value |
|---|---|
| Do not prompt | 0 |
| Prompt | 1 |
| Always prompt | 2 |
| Prompt and open the file read-only | 3 |
| Always prompt and open the file read-only | 4 |
| Do not prompt and open the file read-only | 5 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\options] ; Options (use only one) ; Do not prompt "custommarkupwarning"=dword:00000000 ; Prompt "custommarkupwarning"=dword:00000001 ; Always prompt "custommarkupwarning"=dword:00000002 ; Prompt and open the file read-only "custommarkupwarning"=dword:00000003 ; Always prompt and open the file read-only "custommarkupwarning"=dword:00000004 ; Do not prompt and open the file read-only "custommarkupwarning"=dword:00000005
CMD
:: Options (use only one) :: Do not prompt reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 0 /f :: Prompt reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 1 /f :: Always prompt reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 2 /f :: Prompt and open the file read-only reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 3 /f :: Always prompt and open the file read-only reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 4 /f :: Do not prompt and open the file read-only reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 5 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Force | Out-Null # Options (use only one) # Do not prompt New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 0 -Force | Out-Null # Prompt New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 1 -Force | Out-Null # Always prompt New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 2 -Force | Out-Null # Prompt and open the file read-only New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 3 -Force | Out-Null # Always prompt and open the file read-only New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 4 -Force | Out-Null # Do not prompt and open the file read-only New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 5 -Force | Out-Null