停用預先定義的命令 的登錄值 filepublishaswebpage 等 15 個 (excel\disabledcmdbaritemscheckboxes)使用者HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes
- 原則 ID
- L_Disablecommandbarbuttonsandmenuitems
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft Excel 2016 › 停用使用者介面中的項目 › 預先定義
登錄
filepublishaswebpage
刪除值使用者- 停用時的值
- (刪除值)
以 .reg · CMD · PowerShell 套用
已停用
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] "filepublishaswebpage"=-
CMD · 已停用
reg delete "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "filepublishaswebpage" /f
PowerShell · 已停用
Remove-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'filepublishaswebpage'
weboptions
刪除值使用者- 停用時的值
- (刪除值)
以 .reg · CMD · PowerShell 套用
已停用
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] "weboptions"=-
CMD · 已停用
reg delete "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "weboptions" /f
PowerShell · 已停用
Remove-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'weboptions'
generaloptions
刪除值使用者- 停用時的值
- (刪除值)
以 .reg · CMD · PowerShell 套用
已停用
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] "generaloptions"=-
CMD · 已停用
reg delete "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "generaloptions" /f
PowerShell · 已停用
Remove-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'generaloptions'
fileopensearchtheweb
刪除值使用者- 停用時的值
- (刪除值)
以 .reg · CMD · PowerShell 套用
已停用
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] "fileopensearchtheweb"=-
CMD · 已停用
reg delete "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "fileopensearchtheweb" /f
PowerShell · 已停用
Remove-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'fileopensearchtheweb'
filewebpagepreview
REG_SZ使用者- 已核取
- 3655
- 未核取
- 0
- 元素
- [檔案] 索引標籤 | 選項 | 自訂功能區 | 所有命令 | 網頁預覽
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "filewebpagepreview"="3655" ; 未核取 "filewebpagepreview"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "filewebpagepreview" /t REG_SZ /d 3655 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "filewebpagepreview" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'filewebpagepreview' -PropertyType String -Value '3655' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'filewebpagepreview' -PropertyType String -Value '0' -Force | Out-Null
sendtomailrecipient
REG_SZ使用者- 已核取
- 2188
- 未核取
- 0
- 元素
- [檔案] 索引標籤 | 共用 | 電子郵件
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "sendtomailrecipient"="2188" ; 未核取 "sendtomailrecipient"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "sendtomailrecipient" /t REG_SZ /d 2188 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "sendtomailrecipient" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'sendtomailrecipient' -PropertyType String -Value '2188' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'sendtomailrecipient' -PropertyType String -Value '0' -Force | Out-Null
inserthyperlink
REG_SZ使用者- 已核取
- 1576
- 未核取
- 0
- 元素
- [插入] 索引標籤 | 連結 | 超連結
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "inserthyperlink"="1576" ; 未核取 "inserthyperlink"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "inserthyperlink" /t REG_SZ /d 1576 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "inserthyperlink" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'inserthyperlink' -PropertyType String -Value '1576' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'inserthyperlink' -PropertyType String -Value '0' -Force | Out-Null
toolsprotectsheet
REG_SZ使用者- 已核取
- 893
- 未核取
- 0
- 元素
- [校閱] 索引標籤 | 變更 | 保護工作表
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "toolsprotectsheet"="893" ; 未核取 "toolsprotectsheet"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsprotectsheet" /t REG_SZ /d 893 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsprotectsheet" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectsheet' -PropertyType String -Value '893' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectsheet' -PropertyType String -Value '0' -Force | Out-Null
flyoutanchorprotectworkbookmenu
REG_SZ使用者- 已核取
- 16132
- 未核取
- 0
- 元素
- [校閱] 索引標籤 | 變更 | 保護活頁簿
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "flyoutanchorprotectworkbookmenu"="16132" ; 未核取 "flyoutanchorprotectworkbookmenu"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "flyoutanchorprotectworkbookmenu" /t REG_SZ /d 16132 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "flyoutanchorprotectworkbookmenu" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchorprotectworkbookmenu' -PropertyType String -Value '16132' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchorprotectworkbookmenu' -PropertyType String -Value '0' -Force | Out-Null
toolsprotectshare
REG_SZ使用者- 已核取
- 3059
- 未核取
- 0
- 元素
- [校閱] 索引標籤 | 變更 | 保護且共用活頁簿
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "toolsprotectshare"="3059" ; 未核取 "toolsprotectshare"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsprotectshare" /t REG_SZ /d 3059 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsprotectshare" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectshare' -PropertyType String -Value '3059' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectshare' -PropertyType String -Value '0' -Force | Out-Null
flyoutanchormacros
REG_SZ使用者- 已核取
- 16106
- 未核取
- 0
- 元素
- [檢視] 索引標籤 | 巨集 | 巨集
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "flyoutanchormacros"="16106" ; 未核取 "flyoutanchormacros"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "flyoutanchormacros" /t REG_SZ /d 16106 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "flyoutanchormacros" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchormacros' -PropertyType String -Value '16106' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchormacros' -PropertyType String -Value '0' -Force | Out-Null
toolsmacromacros
REG_SZ使用者- 已核取
- 186
- 未核取
- 0
- 元素
- [開發人員] 索引標籤 | 程式碼 | 巨集
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "toolsmacromacros"="186" ; 未核取 "toolsmacromacros"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacromacros" /t REG_SZ /d 186 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacromacros" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacromacros' -PropertyType String -Value '186' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacromacros' -PropertyType String -Value '0' -Force | Out-Null
toolsmacrorecord
REG_SZ使用者- 已核取
- 184
- 未核取
- 0
- 元素
- [開發人員] 索引標籤 | 程式碼 | 錄製巨集
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "toolsmacrorecord"="184" ; 未核取 "toolsmacrorecord"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacrorecord" /t REG_SZ /d 184 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacrorecord" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrorecord' -PropertyType String -Value '184' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrorecord' -PropertyType String -Value '0' -Force | Out-Null
toolsmacrosecurity
REG_SZ使用者- 已核取
- 3627
- 未核取
- 0
- 元素
- [開發人員] 索引標籤 | 程式碼 | 巨集安全性
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "toolsmacrosecurity"="3627" ; 未核取 "toolsmacrosecurity"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacrosecurity" /t REG_SZ /d 3627 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacrosecurity" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrosecurity' -PropertyType String -Value '3627' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrosecurity' -PropertyType String -Value '0' -Force | Out-Null
toolsmacrovbe
REG_SZ使用者- 已核取
- 1695
- 未核取
- 0
- 元素
- [開發人員] 索引標籤 | 程式碼 | Visual Basic
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "toolsmacrovbe"="1695" ; 未核取 "toolsmacrovbe"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacrovbe" /t REG_SZ /d 1695 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "toolsmacrovbe" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrovbe' -PropertyType String -Value '1695' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrovbe' -PropertyType String -Value '0' -Force | Out-Null
webaddress
REG_SZ使用者- 已核取
- 1740
- 未核取
- 0
- 元素
- [檔案] 索引標籤 | 選項 | 自訂功能區 | 所有命令 | 文件位置
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes] ; 選項 (只使用其中一個) ; 已核取 "webaddress"="1740" ; 未核取 "webaddress"="0"
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "webaddress" /t REG_SZ /d 1740 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" /v "webaddress" /t REG_SZ /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'webaddress' -PropertyType String -Value '1740' -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'webaddress' -PropertyType String -Value '0' -Force | Out-Null