Disable commands: registry value L_disablecommandbarbuttonsandmenuitems85 (access\disabledcmdbaritemslist)UserHKCU\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist
- Policy ID
- L_disablecommandbarbuttonsandmenuitems85
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Category
- Microsoft Access 2016 › Disable Items in User Interface › Custom
Registry
(list values)
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Enter a command bar ID to disable
- Value type
- REG_SZ
- Value name prefix
- TCID
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist] ; Add one value per list entry, increasing the number "TCID1"="<enter value>" "TCID2"="<enter value>"
CMD
:: Add one value per list entry, increasing the number reg add "HKCU\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist" /v "TCID1" /t REG_SZ /d "<enter value>" /f reg add "HKCU\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist" /v "TCID2" /t REG_SZ /d "<enter value>" /f
PowerShell
# Add one value per list entry, increasing the number New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist' -Force | Out-Null New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist' -Name 'TCID1' -PropertyType String -Value '<enter value>' -Force | Out-Null New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemslist' -Name 'TCID2' -PropertyType String -Value '<enter value>' -Force | Out-Null