Network access: Restrict clients allowed to make remote calls to SAM: registry value RestrictRemoteSAMComputerHKLM\System\CurrentControlSet\Control\Lsa
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
RestrictRemoteSAM
REG_SZComputerHKLM\System\CurrentControlSet\Control\Lsa Current key
- Enabled value
- Depends on the option value
- Element
- Network access: Restrict clients allowed to make remote calls to SAM
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa] "RestrictRemoteSAM"="<enter value>"
CMD
reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "RestrictRemoteSAM" /t REG_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'RestrictRemoteSAM' -PropertyType String -Value '<enter value>' -Force | Out-Null