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.
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 StringDé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 SilentlyContinueOptions (10)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| File tab | Export | Publish HTMLL_FilePublishtoWeb | Case à cocherboolean | filepublishtoweb | REG_SZ | Coché : REG_SZ = 9339Décoché : REG_SZ = 0 |
| Web tab | View | Web Page PreviewL_FileWebPagePreview | Case à cocherboolean | filewebpagepreview | REG_SZ | Coché : REG_SZ = 3655Décoché : REG_SZ = 0 |
| File tab | Share | EmailL_FileSendEmailSendthisPage | Case à cocherboolean | filesendemailsendthispage | REG_SZ | Coché : REG_SZ = 3738Décoché : REG_SZ = 0 |
| File tab | Share | E-mail PreviewL_FileSendEmailEmailPreview | Case à cocherboolean | filesendemailemailpreview | REG_SZ | Coché : REG_SZ = 9418Décoché : REG_SZ = 0 |
| Developer tabL_ToolsMacro | Case à cocherboolean | toolsmacro | REG_SZ | Coché : REG_SZ = 12557Décoché : REG_SZ = 0 |
| Developer tab | Code | MacrosL_ToolsMacroMacros | Case à cocherboolean | toolsmacromacros | REG_SZ | Coché : REG_SZ = 186Décoché : REG_SZ = 0 |
| Developer tab | Code | Macro SecurityL_ToolsMacroSecurity | Case à cocherboolean | toolsmacrosecurity | REG_SZ | Coché : REG_SZ = 3627Décoché : REG_SZ = 0 |
| Developer tab | Code | Visual BasicL_ToolsMacroVisualBasicEditor | Case à cocherboolean | toolsmacrovisualbasiceditor | REG_SZ | Coché : REG_SZ = 1695Décoché : REG_SZ = 0 |
| Developer tab | Add-Ins | COM Add-InsL_ToolsAddIns | Case à cocherboolean | toolsaddins | REG_SZ | Coché : REG_SZ = 943Décoché : REG_SZ = 0 |
| File tab | OptionsL_PubOptions1 | Case à cocherboolean | toolsoptions | REG_SZ | Coché : REG_SZ = 11323Dé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.