自訂標記警告 的登錄值 custommarkupwarning使用者HKCU\software\policies\microsoft\office\16.0\word\options
- 原則 ID
- L_CustomMarkupWarning
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft Word 2016 › Word 選項 › 進階
登錄
custommarkupwarning
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- 自訂標記警告:
| 項目 | 儲存的值 |
|---|---|
| 不提示 | 0 |
| 提示 | 1 |
| 永遠要求確認 | 2 |
| 提示並以唯讀方式開啟檔案 | 3 |
| 一律提示並以唯讀方式開啟檔案 | 4 |
| 不提示並以唯讀方式開啟檔案 | 5 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\options] ; 選項 (只使用其中一個) ; 不提示 "custommarkupwarning"=dword:00000000 ; 提示 "custommarkupwarning"=dword:00000001 ; 永遠要求確認 "custommarkupwarning"=dword:00000002 ; 提示並以唯讀方式開啟檔案 "custommarkupwarning"=dword:00000003 ; 一律提示並以唯讀方式開啟檔案 "custommarkupwarning"=dword:00000004 ; 不提示並以唯讀方式開啟檔案 "custommarkupwarning"=dword:00000005
CMD
:: 選項 (只使用其中一個) :: 不提示 reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 0 /f :: 提示 reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 1 /f :: 永遠要求確認 reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 2 /f :: 提示並以唯讀方式開啟檔案 reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 3 /f :: 一律提示並以唯讀方式開啟檔案 reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 4 /f :: 不提示並以唯讀方式開啟檔案 reg add "HKCU\software\policies\microsoft\office\16.0\word\options" /v "custommarkupwarning" /t REG_DWORD /d 5 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Force | Out-Null # 選項 (只使用其中一個) # 不提示 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 0 -Force | Out-Null # 提示 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 1 -Force | Out-Null # 永遠要求確認 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 2 -Force | Out-Null # 提示並以唯讀方式開啟檔案 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 3 -Force | Out-Null # 一律提示並以唯讀方式開啟檔案 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 4 -Force | Out-Null # 不提示並以唯讀方式開啟檔案 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\word\options' -Name 'custommarkupwarning' -PropertyType DWord -Value 5 -Force | Out-Null