Disable commands: registry value L_disablecommandbarbuttonsandmenuitems157 (powerpoint\disabledcmdbaritemslist)UserHKCU\software\policies\microsoft\office\16.0\powerpoint\disabledcmdbaritemslist

Policy ID
L_disablecommandbarbuttonsandmenuitems157
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 PowerPoint 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\powerpoint\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\powerpoint\disabledcmdbaritemslist" /v "TCID1" /t REG_SZ /d "<enter value>" /f
reg add "HKCU\software\policies\microsoft\office\16.0\powerpoint\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\powerpoint\disabledcmdbaritemslist' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\disabledcmdbaritemslist' -Name 'TCID1' -PropertyType String -Value '<enter value>' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\disabledcmdbaritemslist' -Name 'TCID2' -PropertyType String -Value '<enter value>' -Force | Out-Null