Podpisywanie kodu dla pakietów sterowników: wartość rejestru BehaviorOnFailedVerifyUżytkownikHKCU\Software\Policies\Microsoft\Windows NT\Driver Signing

Identyfikator zasady
DriverSigning
Zakres
Konfiguracja użytkownika
Obsługiwane w systemach
Tylko systemy Windows Server 2003, Windows XP i Windows 2000
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
System › Instalacja sterowników

Rejestr

BehaviorOnFailedVerify

REG_DWORDUżytkownik
Wartość włączona
Zależy od wartości opcji
Element
Kiedy system Windows wykryje plik sterownika bez podpisu cyfrowego:
Opcje
PozycjaZapisana wartość
Ignoruj0
Ostrzegaj1
Zablokuj2
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Ignoruj
"BehaviorOnFailedVerify"=dword:00000000
; Ostrzegaj
"BehaviorOnFailedVerify"=dword:00000001
; Zablokuj
"BehaviorOnFailedVerify"=dword:00000002
CMD
:: Opcje (użyj tylko jednej)

:: Ignoruj
reg add "HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing" /v "BehaviorOnFailedVerify" /t REG_DWORD /d 0 /f
:: Ostrzegaj
reg add "HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing" /v "BehaviorOnFailedVerify" /t REG_DWORD /d 1 /f
:: Zablokuj
reg add "HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing" /v "BehaviorOnFailedVerify" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Ignoruj
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Name 'BehaviorOnFailedVerify' -PropertyType DWord -Value 0 -Force | Out-Null
# Ostrzegaj
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Name 'BehaviorOnFailedVerify' -PropertyType DWord -Value 1 -Force | Out-Null
# Zablokuj
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\Driver Signing' -Name 'BehaviorOnFailedVerify' -PropertyType DWord -Value 2 -Force | Out-Null