Validatie van WHfB-sleutels die kwetsbaar zijn voor ROCA tijdens authenticatie configureren: registerwaarde SamNGCKeyROCAValidationComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM

Beleids-ID
SamNGCKeyROCAValidation
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows Vista
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Systeem › Security Account Manager

Register

SamNGCKeyROCAValidation

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Opties voor het verwerken van WHfB-sleutels die kwetsbaar zijn voor ROCA:
Opties
ItemOpgeslagen waarde
WHfB-sleutels die kwetsbaar zijn voor ROCA negeren0
WHfB-sleutels die kwetsbaar zijn voor ROCA controleren bij gebruik1
WHfB-sleutels die kwetsbaar zijn voor ROCA blokkeren bij gebruik2
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM]

; Opties (gebruik er maar één)
; WHfB-sleutels die kwetsbaar zijn voor ROCA negeren
"SamNGCKeyROCAValidation"=dword:00000000
; WHfB-sleutels die kwetsbaar zijn voor ROCA controleren bij gebruik
"SamNGCKeyROCAValidation"=dword:00000001
; WHfB-sleutels die kwetsbaar zijn voor ROCA blokkeren bij gebruik
"SamNGCKeyROCAValidation"=dword:00000002
CMD
:: Opties (gebruik er maar één)

:: WHfB-sleutels die kwetsbaar zijn voor ROCA negeren
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM" /v "SamNGCKeyROCAValidation" /t REG_DWORD /d 0 /f
:: WHfB-sleutels die kwetsbaar zijn voor ROCA controleren bij gebruik
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM" /v "SamNGCKeyROCAValidation" /t REG_DWORD /d 1 /f
:: WHfB-sleutels die kwetsbaar zijn voor ROCA blokkeren bij gebruik
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM" /v "SamNGCKeyROCAValidation" /t REG_DWORD /d 2 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM' -Force | Out-Null

# Opties (gebruik er maar één)
# WHfB-sleutels die kwetsbaar zijn voor ROCA negeren
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM' -Name 'SamNGCKeyROCAValidation' -PropertyType DWord -Value 0 -Force | Out-Null
# WHfB-sleutels die kwetsbaar zijn voor ROCA controleren bij gebruik
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM' -Name 'SamNGCKeyROCAValidation' -PropertyType DWord -Value 1 -Force | Out-Null
# WHfB-sleutels die kwetsbaar zijn voor ROCA blokkeren bij gebruik
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\SAM' -Name 'SamNGCKeyROCAValidation' -PropertyType DWord -Value 2 -Force | Out-Null