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 in the specified applications.
If you enable this policy setting you can disable specific command bar buttons and menu items in the user interface for the selected application. The predefined list of command bar buttons and menu items you can disable becomes available to you when you enable this policy setting.
If you disable or do not configure this policy setting, the predefined list of command bar buttons and menu items are enabled for the application.
Registre
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\access\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 : access16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Access Options | Customize | All Commands | Email
# décoché : 0
Set-ItemProperty -Path $k -Name 'sendtomailrecipient' -Value '2188' -Type String
# Database tools | Database tools | Encrypt with Password
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolssecuritysetpwd' -Value '1814' -Type String
# File tab | Access Options | Customize | All Commands | User and Group Permissions
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolssecurityperms' -Value '572' -Type String
# File tab | Access Options | Customize | All Commands | User and Group accounts
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolssecurityaccts' -Value '1816' -Type String
# File tab | Access Options | Customize | All Commands | User-Level Security Wizard...
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolssecuritysecwiz' -Value '1815' -Type String
# File tab | Access Options | Customize | All Commands | Encode/Decode Database
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolssecurityencrypt' -Value '2074' -Type String
# Database tools | Macro | Visual Basic
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacrovbe' -Value '1695' -Type String
# Database Tools | Macro | Run Macro
# décoché : 0
Set-ItemProperty -Path $k -Name 'accrunmacro' -Value '5745' -Type String
# Database Tools | Macro | Convert Macros to Visual Basic
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacroconvertmacros' -Value '2948' -Type String
# Database Tools | Macro | Create Shortcut Menu from Macro
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsmacrocreateshortcutmenu' -Value '1570' -Type String
# Database Tools | Database Tools | Add-Ins
# décoché : 0
Set-ItemProperty -Path $k -Name 'addinsmenuicon' -Value '15719' -Type StringDésactiver
# Désactiver : access16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinueRevenir à « Non configuré »
# Revenir à « Non configuré » : access16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'sendtomailrecipient' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecuritysetpwd' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecurityperms' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecurityaccts' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecuritysecwiz' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecurityencrypt' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrovbe' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'accrunmacro' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacroconvertmacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrocreateshortcutmenu' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'addinsmenuicon' -ErrorAction SilentlyContinueOptions (11)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| File tab | Access Options | Customize | All Commands | EmailL_FileSendToMailRecipient | Case à cocherboolean | sendtomailrecipient | REG_SZ | Coché : REG_SZ = 2188Décoché : REG_SZ = 0 |
| Database tools | Database tools | Encrypt with PasswordL_ToolsSecuritySetDatabasePassword | Case à cocherboolean | toolssecuritysetpwd | REG_SZ | Coché : REG_SZ = 1814Décoché : REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | User and Group PermissionsL_ToolsSecurityUserandGroupPermissions | Case à cocherboolean | toolssecurityperms | REG_SZ | Coché : REG_SZ = 572Décoché : REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | User and Group accountsL_ToolsSecurityUserandGroupAccounts | Case à cocherboolean | toolssecurityaccts | REG_SZ | Coché : REG_SZ = 1816Décoché : REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | User-Level Security Wizard...L_ToolsSecurityUserLevelSecurityWizard | Case à cocherboolean | toolssecuritysecwiz | REG_SZ | Coché : REG_SZ = 1815Décoché : REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | Encode/Decode DatabaseL_ToolsSecurityEncryptDecryptDatabase | Case à cocherboolean | toolssecurityencrypt | REG_SZ | Coché : REG_SZ = 2074Décoché : REG_SZ = 0 |
| Database tools | Macro | Visual BasicL_ToolsMacroVisualBasicEditorAcc | Case à cocherboolean | toolsmacrovbe | REG_SZ | Coché : REG_SZ = 1695Décoché : REG_SZ = 0 |
| Database Tools | Macro | Run MacroL_ToolsMacroRunMacro | Case à cocherboolean | accrunmacro | REG_SZ | Coché : REG_SZ = 5745Décoché : REG_SZ = 0 |
| Database Tools | Macro | Convert Macros to Visual BasicL_ToolsMacroConvertMacrostoVisualBasic | Case à cocherboolean | toolsmacroconvertmacros | REG_SZ | Coché : REG_SZ = 2948Décoché : REG_SZ = 0 |
| Database Tools | Macro | Create Shortcut Menu from MacroL_ToolsMacroCreateShortcutMenufromMacro | Case à cocherboolean | toolsmacrocreateshortcutmenu | REG_SZ | Coché : REG_SZ = 1570Décoché : REG_SZ = 0 |
| Database Tools | Database Tools | Add-InsL_ToolsAddInsAcc | Case à cocherboolean | addinsmenuicon | REG_SZ | Coché : REG_SZ = 15719Dé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.