Rozszerzone blokowanie protokołu NTLM: wartość rejestru EnhancedNtlmBlocks i 5 więcejKomputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters

Identyfikator zasady
BlockNtlm
Zakres
Konfiguracja komputera
Obsługiwane w systemach
Co najmniej system Windows 11 w wersji 24H2
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
System › NTLM

Rejestr

EnhancedNtlmBlocks

REG_DWORDKomputer
Wartość włączona
1
Wartość wyłączona
0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters]

; Opcje (użyj tylko jednej)
; Włączone
"EnhancedNtlmBlocks"=dword:00000001
; Wyłączone
"EnhancedNtlmBlocks"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Włączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "EnhancedNtlmBlocks" /t REG_DWORD /d 1 /f
:: Wyłączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "EnhancedNtlmBlocks" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Włączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'EnhancedNtlmBlocks' -PropertyType DWord -Value 1 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'EnhancedNtlmBlocks' -PropertyType DWord -Value 0 -Force | Out-Null

BlockDomainAccountSSO

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Blokuj protokół NTLM dla logowania jednokrotnego kont domenowych
Opcje
PozycjaZapisana wartość
Inspekcja1
Włączone2
Wyłączone0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters]

; Opcje (użyj tylko jednej)
; Inspekcja
"BlockDomainAccountSSO"=dword:00000001
; Włączone
"BlockDomainAccountSSO"=dword:00000002
; Wyłączone
"BlockDomainAccountSSO"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Inspekcja
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockDomainAccountSSO" /t REG_DWORD /d 1 /f
:: Włączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockDomainAccountSSO" /t REG_DWORD /d 2 /f
:: Wyłączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockDomainAccountSSO" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Inspekcja
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockDomainAccountSSO' -PropertyType DWord -Value 1 -Force | Out-Null
# Włączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockDomainAccountSSO' -PropertyType DWord -Value 2 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockDomainAccountSSO' -PropertyType DWord -Value 0 -Force | Out-Null

BlockDomainControllerAuth

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Blokuj protokół NTLM dla kontrolerów domeny
Opcje
PozycjaZapisana wartość
Inspekcja1
Włączone2
Wyłączone0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters]

; Opcje (użyj tylko jednej)
; Inspekcja
"BlockDomainControllerAuth"=dword:00000001
; Włączone
"BlockDomainControllerAuth"=dword:00000002
; Wyłączone
"BlockDomainControllerAuth"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Inspekcja
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockDomainControllerAuth" /t REG_DWORD /d 1 /f
:: Włączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockDomainControllerAuth" /t REG_DWORD /d 2 /f
:: Wyłączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockDomainControllerAuth" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Inspekcja
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockDomainControllerAuth' -PropertyType DWord -Value 1 -Force | Out-Null
# Włączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockDomainControllerAuth' -PropertyType DWord -Value 2 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockDomainControllerAuth' -PropertyType DWord -Value 0 -Force | Out-Null

EnforceMachineBinding

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Blokuj protokół NTLM w przypadku niepowodzenia powiązania maszyny
Opcje
PozycjaZapisana wartość
Inspekcja1
Włączone2
Wyłączone0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters]

; Opcje (użyj tylko jednej)
; Inspekcja
"EnforceMachineBinding"=dword:00000001
; Włączone
"EnforceMachineBinding"=dword:00000002
; Wyłączone
"EnforceMachineBinding"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Inspekcja
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "EnforceMachineBinding" /t REG_DWORD /d 1 /f
:: Włączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "EnforceMachineBinding" /t REG_DWORD /d 2 /f
:: Wyłączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "EnforceMachineBinding" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Inspekcja
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'EnforceMachineBinding' -PropertyType DWord -Value 1 -Force | Out-Null
# Włączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'EnforceMachineBinding' -PropertyType DWord -Value 2 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'EnforceMachineBinding' -PropertyType DWord -Value 0 -Force | Out-Null

BlockAll

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Blokuj wszystkie uwierzytelnienia NTLM
Opcje
PozycjaZapisana wartość
Inspekcja1
Włączone2
Wyłączone0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters]

; Opcje (użyj tylko jednej)
; Inspekcja
"BlockAll"=dword:00000001
; Włączone
"BlockAll"=dword:00000002
; Wyłączone
"BlockAll"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Inspekcja
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockAll" /t REG_DWORD /d 1 /f
:: Włączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockAll" /t REG_DWORD /d 2 /f
:: Wyłączone
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "BlockAll" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Inspekcja
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockAll' -PropertyType DWord -Value 1 -Force | Out-Null
# Włączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockAll' -PropertyType DWord -Value 2 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'BlockAll' -PropertyType DWord -Value 0 -Force | Out-Null

EnhancedMachineBlockingAllowList

REG_MULTI_SZKomputer
Wartość włączona
Zależy od wartości opcji
Element
Określ listę dozwolonych dla ulepszonych zasad blokowania:
Typ wartości
REG_MULTI_SZ
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters]

; Nazwy i typy wartości są zgodne z plikiem ADMX. Zastąp poniższe <wpisz wartość> własnymi danymi
; Dane hex(2) i hex(7) trzeba zapisać szesnastkowo (UTF-16LE)
"EnhancedMachineBlockingAllowList"=hex(7):<wpisz wartość>
CMD
:: Nazwy i typy wartości są zgodne z plikiem ADMX. Zastąp poniższe <wpisz wartość> własnymi danymi

reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters" /v "EnhancedMachineBlockingAllowList" /t REG_MULTI_SZ /d "<wpisz wartość>" /f
PowerShell
# Nazwy i typy wartości są zgodne z plikiem ADMX. Zastąp poniższe <wpisz wartość> własnymi danymi

New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\NTLM\Parameters' -Name 'EnhancedMachineBlockingAllowList' -PropertyType MultiString -Value '<wpisz wartość>' -Force | Out-Null