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 some specific commands in Microsoft Word. Commands are buttons, menus, or other items that can be added to the Quick Access Toolbar or to the Ribbon under File tab | Options | Quick Access Toolbar or via File | Options | Customize Ribbon, respectively.
If you enable this policy setting then you can specify what commands in the user interface for Word are disabled.
If you disable or do not configure this policy setting, the commands in the predefined list are all enabled in Word.
Registre
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes- Nom de la valeur
- non défini dans l'ADMX
| État | Valeur écrite | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Activé | non défini dans l'ADMX (voir les options ci-dessous) | ||||||||||||
| Désactivé |
|
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_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | 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 'sendtomailrecipient' -Value '2188' -Type String
# Insert tab | Links | Hyperlink
# décoché : 0
Set-ItemProperty -Path $k -Name 'inserthyperlink' -Value '1576' -Type String
# File tab | Info | Protect Document
# décoché : 0
Set-ItemProperty -Path $k -Name 'flyoutanchorprotectdocumentmenu' -Value '16129' -Type String
# View tab | Macros | Macros
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacro' -Value '16106' -Type String
# Developer tab | Code | Macros
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacromacros' -Value '186' -Type String
# Developer tab | Code | Record Macro
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacrorecord' -Value '2780' -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 'toolsmacrovbe' -Value '1695' -Type String
# Developer tab | Templates | Document Template
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolstemplateaddins' -Value '751' -Type String
# File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Document Location
# décoché : 0
Set-ItemProperty -Path $k -Name 'webaddress' -Value '1740' -Type StringDésactiver
# Désactiver : word16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'weboptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'generaloptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinueRevenir à « Non configuré »
# Revenir à « Non configuré » : word16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'weboptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'generaloptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filewebpagepreview' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'sendtomailrecipient' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'inserthyperlink' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'flyoutanchorprotectdocumentmenu' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacro' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacromacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrorecord' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrosecurity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrovbe' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolstemplateaddins' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'webaddress' -ErrorAction SilentlyContinueOptions (11)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Web Page PreviewL_FileWebPagePreview | Case à cocherboolean | filewebpagepreview | REG_SZ | Coché : REG_SZ = 3655Décoché : REG_SZ = 0 |
| File tab | Share | EmailL_FileSendToMailRecipient | Case à cocherboolean | sendtomailrecipient | REG_SZ | Coché : REG_SZ = 2188Décoché : REG_SZ = 0 |
| Insert tab | Links | HyperlinkL_InsertHyperlinkWd | Case à cocherboolean | inserthyperlink | REG_SZ | Coché : REG_SZ = 1576Décoché : REG_SZ = 0 |
| File tab | Info | Protect DocumentL_ToolsProtectDocument | Case à cocherboolean | flyoutanchorprotectdocumentmenu | REG_SZ | Coché : REG_SZ = 16129Décoché : REG_SZ = 0 |
| View tab | Macros | MacrosL_ToolsMacroWd | Case à cocherboolean | toolsmacro | REG_SZ | Coché : REG_SZ = 16106Décoché : REG_SZ = 0 |
| Developer tab | Code | MacrosL_ToolsMacroMacrosWd | Case à cocherboolean | toolsmacromacros | REG_SZ | Coché : REG_SZ = 186Décoché : REG_SZ = 0 |
| Developer tab | Code | Record MacroL_ToolsMacroRecordNewMacro | Case à cocherboolean | toolsmacrorecord | REG_SZ | Coché : REG_SZ = 2780Dé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_ToolsMacroVisualBasicEditorWd | Case à cocherboolean | toolsmacrovbe | REG_SZ | Coché : REG_SZ = 1695Décoché : REG_SZ = 0 |
| Developer tab | Templates | Document TemplateL_ToolsTemplatesandAddIns | Case à cocherboolean | toolstemplateaddins | REG_SZ | Coché : REG_SZ = 751Décoché : REG_SZ = 0 |
| File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Document LocationL_WebAddressWd | Case à cocherboolean | webaddress | REG_SZ | Coché : REG_SZ = 1740Dé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.