Netzwerkzugriff: Anonyme Aufzählung von SAM-Konten nicht erlauben: Registrierungswert RestrictAnonymousSAMComputerHKLM\System\CurrentControlSet\Control\Lsa
- Kategorie
- Sicherheitseinstellungen › Lokale Richtlinien › Sicherheitsoptionen
- Bereich
- Computerkonfiguration
- Quelle
- Windows 11 (Version 26H2 · 26300.9457)
Registrierung
RestrictAnonymousSAM
REG_DWORDComputerHKLM\System\CurrentControlSet\Control\Lsa Aktueller Schlüssel
- Wert bei Aktivierung
- 1
- Wert bei Deaktivierung
- 0
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa] ; Optionen (nur eine verwenden) ; Aktiviert "RestrictAnonymousSAM"=dword:00000001 ; Deaktiviert "RestrictAnonymousSAM"=dword:00000000
CMD
:: Optionen (nur eine verwenden) :: Aktiviert reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "RestrictAnonymousSAM" /t REG_DWORD /d 1 /f :: Deaktiviert reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "RestrictAnonymousSAM" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Force | Out-Null # Optionen (nur eine verwenden) # Aktiviert New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'RestrictAnonymousSAM' -PropertyType DWord -Value 1 -Force | Out-Null # Deaktiviert New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'RestrictAnonymousSAM' -PropertyType DWord -Value 0 -Force | Out-Null