Ouvrir dans l'explorateur

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.

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Word 2016 › Options Word › Options avancées EN : User Configuration › Policies › Administrative Templates › Microsoft Word 2016 › Word Options › Advanced
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
word16.admx
Nom interne
word16/L_CustomMarkupWarning

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 DWord

Dé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 SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Custom markup warning:L_CustomMarkupWarningDropIDListe déroulanteenumcustommarkupwarningREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
Do not promptREG_DWORD = 0
PromptREG_DWORD = 1
Always promptREG_DWORD = 2
Prompt and open the file read-onlyREG_DWORD = 3
Always prompt and open the file read-onlyREG_DWORD = 4
Do not prompt and open the file read-onlyREG_DWORD = 5

Application

Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.