驅動程式套件的程式碼簽署 的登錄值 BehaviorOnFailedVerify使用者HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing

原則 ID
DriverSigning
適用範圍
使用者設定
支援的作業系統
僅 Windows Server 2003、Windows XP 與 Windows 2000
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
系統 › 驅動程式安裝

登錄

BehaviorOnFailedVerify

REG_DWORD使用者
啟用時的值
取決於選項值
元素
當 Windows 偵測到驅動程式檔案沒有數位簽章:
選項
項目儲存的值
略過0
警告1
封鎖2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing]

; 選項 (只使用其中一個)
; 略過
"BehaviorOnFailedVerify"=dword:00000000
; 警告
"BehaviorOnFailedVerify"=dword:00000001
; 封鎖
"BehaviorOnFailedVerify"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 略過
reg add "HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing" /v "BehaviorOnFailedVerify" /t REG_DWORD /d 0 /f
:: 警告
reg add "HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing" /v "BehaviorOnFailedVerify" /t REG_DWORD /d 1 /f
:: 封鎖
reg add "HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing" /v "BehaviorOnFailedVerify" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Force | Out-Null

# 選項 (只使用其中一個)
# 略過
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Name 'BehaviorOnFailedVerify' -PropertyType DWord -Value 0 -Force | Out-Null
# 警告
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Name 'BehaviorOnFailedVerify' -PropertyType DWord -Value 1 -Force | Out-Null
# 封鎖
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Name 'BehaviorOnFailedVerify' -PropertyType DWord -Value 2 -Force | Out-Null