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

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\excel\disabledcmdbaritemscheckboxes
Nom de la valeur
non défini dans l'ADMX
ÉtatValeur écrite
Activénon défini dans l'ADMX (voir les options ci-dessous)
Désactivé
CléValeurDonnée
software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxesfilepublishaswebpageSupprime la valeur
software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxesweboptionsSupprime la valeur
software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxesgeneraloptionsSupprime la valeur
software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxesfileopensearchthewebSupprime la valeur

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 : excel16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Options | Customize Ribbon | 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
# Review tab | Changes | Protect Sheet
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsprotectsheet' -Value '893' -Type String
# Review tab | Changes | Protect Workbook
# décoché : 0
Set-ItemProperty -Path $k -Name 'flyoutanchorprotectworkbookmenu' -Value '16132' -Type String
# Review tab | Changes | Protect and Share Workbook
# décoché : 0
Set-ItemProperty -Path $k -Name 'toolsprotectshare' -Value '3059' -Type String
# View tab | Macros | Macros
# décoché : 0
Set-ItemProperty -Path $k -Name 'flyoutanchormacros' -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 '184' -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
# File tab | Options | Customize Ribbon | All Commands | Document Location
# décoché : 0
Set-ItemProperty -Path $k -Name 'webaddress' -Value '1740' -Type String

Désactiver

# Désactiver : excel16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'filepublishaswebpage' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'weboptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'generaloptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinue

Revenir à « Non configuré »

# Revenir à « Non configuré » : excel16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'filepublishaswebpage' -ErrorAction SilentlyContinue
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 'toolsprotectsheet' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'flyoutanchorprotectworkbookmenu' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsprotectshare' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'flyoutanchormacros' -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 'webaddress' -ErrorAction SilentlyContinue

Options (12)

LibelléContrôleValeur de registreType REGContraintes / détails
File tab | Options | Customize Ribbon | All Commands | Web Page PreviewL_OfficeButtonxcelOptionsCustomizationCombinedPreviewWebPagePreviewCase à cocherbooleanfilewebpagepreviewREG_SZ
Coché : REG_SZ = 3655
Décoché : REG_SZ = 0
File tab | Share | EmailL_OfficeButtonExcelOptionsCustomizationMailRecipientCase à cocherbooleansendtomailrecipientREG_SZ
Coché : REG_SZ = 2188
Décoché : REG_SZ = 0
Insert tab | Links | HyperlinkL_InsertLinksHyperlinkCase à cocherbooleaninserthyperlinkREG_SZ
Coché : REG_SZ = 1576
Décoché : REG_SZ = 0
Review tab | Changes | Protect SheetL_ReviewChangesProtectSheetCase à cocherbooleantoolsprotectsheetREG_SZ
Coché : REG_SZ = 893
Décoché : REG_SZ = 0
Review tab | Changes | Protect WorkbookL_ReviewChangesProtectWorkbookCase à cocherbooleanflyoutanchorprotectworkbookmenuREG_SZ
Coché : REG_SZ = 16132
Décoché : REG_SZ = 0
Review tab | Changes | Protect and Share WorkbookL_ReviewChangesProtectSharingCase à cocherbooleantoolsprotectshareREG_SZ
Coché : REG_SZ = 3059
Décoché : REG_SZ = 0
View tab | Macros | MacrosL_ViewMacrosMacrosCase à cocherbooleanflyoutanchormacrosREG_SZ
Coché : REG_SZ = 16106
Décoché : REG_SZ = 0
Developer tab | Code | MacrosL_DeveloperCodeMacrosCase à cocherbooleantoolsmacromacrosREG_SZ
Coché : REG_SZ = 186
Décoché : REG_SZ = 0
Developer tab | Code | Record MacroL_DeveloperCodeRecordMacroCase à cocherbooleantoolsmacrorecordREG_SZ
Coché : REG_SZ = 184
Décoché : REG_SZ = 0
Developer tab | Code | Macro SecurityL_DeveloperCodemacroSecurityCase à cocherbooleantoolsmacrosecurityREG_SZ
Coché : REG_SZ = 3627
Décoché : REG_SZ = 0
Developer tab | Code | Visual BasicL_DeveloperCodeVisualbasicCase à cocherbooleantoolsmacrovbeREG_SZ
Coché : REG_SZ = 1695
Décoché : REG_SZ = 0
File tab | Options | Customize Ribbon | All Commands | Document LocationL_OfficeButtonExcelOptionsCustomizeDocumentLocationCase à cocherbooleanwebaddressREG_SZ
Coché : REG_SZ = 1740
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.