封鎖未受信任的字型 的登錄值 MitigationOptions_FontBocking電腦HKLM\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions

原則 ID
FontMitigation
適用範圍
電腦設定
支援的作業系統
至少需要 Windows Server 2016、Windows 10
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
系統 › 緩和選項

登錄

MitigationOptions_FontBocking

REG_SZ電腦
啟用時的值
取決於選項值
元素
緩和選項
選項
項目儲存的值
封鎖未受信任的字型並記錄事件1000000000000
不封鎖未受信任的字型2000000000000
記錄事件,而不封鎖未受信任的字型3000000000000
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions]

; 選項 (只使用其中一個)
; 封鎖未受信任的字型並記錄事件
"MitigationOptions_FontBocking"="1000000000000"
; 不封鎖未受信任的字型
"MitigationOptions_FontBocking"="2000000000000"
; 記錄事件,而不封鎖未受信任的字型
"MitigationOptions_FontBocking"="3000000000000"
CMD
:: 選項 (只使用其中一個)

:: 封鎖未受信任的字型並記錄事件
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions" /v "MitigationOptions_FontBocking" /t REG_SZ /d 1000000000000 /f
:: 不封鎖未受信任的字型
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions" /v "MitigationOptions_FontBocking" /t REG_SZ /d 2000000000000 /f
:: 記錄事件,而不封鎖未受信任的字型
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions" /v "MitigationOptions_FontBocking" /t REG_SZ /d 3000000000000 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions' -Force | Out-Null

# 選項 (只使用其中一個)
# 封鎖未受信任的字型並記錄事件
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions' -Name 'MitigationOptions_FontBocking' -PropertyType String -Value '1000000000000' -Force | Out-Null
# 不封鎖未受信任的字型
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions' -Name 'MitigationOptions_FontBocking' -PropertyType String -Value '2000000000000' -Force | Out-Null
# 記錄事件,而不封鎖未受信任的字型
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions' -Name 'MitigationOptions_FontBocking' -PropertyType String -Value '3000000000000' -Force | Out-Null