Custom markup warning
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy setting specifies how Word behaves when opening a document that contains custom XML markup.
If you enable this policy setting, you can set the behavior to one of the following:
- 0: Do not prompt the user and silently remove the custom XML markup.
- 1: Prompt the user regarding the loss of custom XML markup. This is the default option.
- 2: Prompt the user regarding the loss of custom XML markup, and do not allow them to suppress this prompt.
- 3: Prompt the user regarding the loss of custom XML markup, and open the file read-only.
- 4: Prompt the user regarding the loss of custom XML markup, do not allow them to suppress this prompt, and open the file read-only.
- 5: Do not prompt the user and silently remove the custom XML markup, but open the file read-only.
Registre
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\options- Nom de la valeur
- non défini dans l'ADMX
Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : word16/L_CustomMarkupWarning
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\options'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Custom markup warning
# Options possibles :
# 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
Set-ItemProperty -Path $k -Name 'custommarkupwarning' -Value 1 -Type DWordDésactiver
# Désactiver : word16/L_CustomMarkupWarning
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : word16/L_CustomMarkupWarning
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\options'
Remove-ItemProperty -Path $k -Name 'custommarkupwarning' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Custom markup warning:L_CustomMarkupWarningDropID | Liste déroulanteenum | custommarkupwarning | REG_DWORD | Choix par défaut (interface) : n° 1
|
Application
Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.