Ouvrir dans l'explorateur

Disable predefined commands

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 Publisher 2016 › Désactiver les éléments de l’interface utilisateur › Prédéfini EN : User Configuration › Policies › Administrative Templates › Microsoft Publisher 2016 › Disable Items in User Interface › Predefined
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
pub16.admx
Nom interne
pub16/L_Disablecommandbarbuttonsandmenuitems

Explication

This policy setting allows you to disable specific command bar buttons and menu items for Publisher.

If you enable this policy setting, you can enter an ID number to disable a specific command bar button or menu item. The ID number needs to be in decimal (not hexadecimal). Multiple values should be separated by commas.

If you disable or do not configure this policy setting, the predefined list of command bar buttons and menu items are enabled for Publisher.

Registre

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\publisher\disabledcmdbaritemscheckboxes
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 : pub16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\publisher\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Export | Publish HTML
# décoché : 0
Set-ItemProperty -Path $k -Name 'filepublishtoweb' -Value '9339' -Type String
# Web tab | View | Web Page Preview
# décoché : 0
Set-ItemProperty -Path $k -Name 'filewebpagepreview' -Value '3655' -Type String
# File tab | Share | Email
# décoché : 0
Set-ItemProperty -Path $k -Name 'filesendemailsendthispage' -Value '3738' -Type String
# File tab | Share | E-mail Preview
# décoché : 0
Set-ItemProperty -Path $k -Name 'filesendemailemailpreview' -Value '9418' -Type String
# Developer tab
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacro' -Value '12557' -Type String
# Developer tab | Code | Macros
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacromacros' -Value '186' -Type String
# Developer tab | Code | Macro Security
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacrosecurity' -Value '3627' -Type String
# Developer tab | Code | Visual Basic
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacrovisualbasiceditor' -Value '1695' -Type String
# Developer tab | Add-Ins | COM Add-Ins
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsaddins' -Value '943' -Type String
# File tab | Options
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsoptions' -Value '11323' -Type String

Désactiver

# Désactiver : pub16/L_Disablecommandbarbuttonsandmenuitems
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : pub16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\publisher\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'filepublishtoweb' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filewebpagepreview' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filesendemailsendthispage' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filesendemailemailpreview' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacro' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacromacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrosecurity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrovisualbasiceditor' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsaddins' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsoptions' -ErrorAction SilentlyContinue

Options (10)

LibelléContrôleValeur de registreType REGContraintes / détails
File tab | Export | Publish HTMLL_FilePublishtoWebCase à cocherbooleanfilepublishtowebREG_SZ
Coché : REG_SZ = 9339
Décoché : REG_SZ = 0
Web tab | View | Web Page PreviewL_FileWebPagePreviewCase à cocherbooleanfilewebpagepreviewREG_SZ
Coché : REG_SZ = 3655
Décoché : REG_SZ = 0
File tab | Share | EmailL_FileSendEmailSendthisPageCase à cocherbooleanfilesendemailsendthispageREG_SZ
Coché : REG_SZ = 3738
Décoché : REG_SZ = 0
File tab | Share | E-mail PreviewL_FileSendEmailEmailPreviewCase à cocherbooleanfilesendemailemailpreviewREG_SZ
Coché : REG_SZ = 9418
Décoché : REG_SZ = 0
Developer tabL_ToolsMacroCase à cocherbooleantoolsmacroREG_SZ
Coché : REG_SZ = 12557
Décoché : REG_SZ = 0
Developer tab | Code | MacrosL_ToolsMacroMacrosCase à cocherbooleantoolsmacromacrosREG_SZ
Coché : REG_SZ = 186
Décoché : REG_SZ = 0
Developer tab | Code | Macro SecurityL_ToolsMacroSecurityCase à cocherbooleantoolsmacrosecurityREG_SZ
Coché : REG_SZ = 3627
Décoché : REG_SZ = 0
Developer tab | Code | Visual BasicL_ToolsMacroVisualBasicEditorCase à cocherbooleantoolsmacrovisualbasiceditorREG_SZ
Coché : REG_SZ = 1695
Décoché : REG_SZ = 0
Developer tab | Add-Ins | COM Add-InsL_ToolsAddInsCase à cocherbooleantoolsaddinsREG_SZ
Coché : REG_SZ = 943
Décoché : REG_SZ = 0
File tab | OptionsL_PubOptions1Case à cocherbooleantoolsoptionsREG_SZ
Coché : REG_SZ = 11323
Décoché : REG_SZ = 0

Application

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

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