RestrictRemoteSAM is a Windows registry setting used to control who can make remote Security Account Manager calls. It is a security boundary for limiting enumeration of local or Active Directory account information and is commonly managed through registry changes or Group Policy.
What RestrictRemoteSAM Does
RestrictRemoteSAM is a Windows control that constrains remote calls to the Security Account Manager, reducing who can query account information over the network. In practice, it narrows a legacy but sensitive management path that can otherwise expose local or directory account details and help an attacker map usable identities.
Why Remote SAM Access Matters
Remote SAM access is not a normal application feature, it is an administrative pathway. When it is overly open, it can reveal local users, group memberships, built-in administrators, and other account metadata that improves enumeration, privilege discovery, and lateral movement planning. Even without direct credential theft, that information can materially lower the effort needed to stage follow-on access.
Because the setting affects how remote enumeration behaves, its security value is partly about reducing unnecessary visibility. The smaller the remote query surface, the less useful the target is for reconnaissance and the less likely an exposed endpoint can be used as a foothold for account discovery at scale.
How It Is Commonly Managed
In most environments, RestrictRemoteSAM is enforced through registry configuration or Group Policy rather than by ad hoc local edits. That matters because the control is only useful when it is applied consistently across the fleet, especially on workstations, servers, and management hosts that may otherwise drift into permissive defaults.
Operationally, teams should treat it as part of baseline hardening rather than a one-off tweak. Where administrators still need remote account visibility for support or inventory tasks, access should be tightly scoped and reviewed so the exception does not become a broad standing allowance.
When To Review Exposure
Exposure is most worth checking on systems that are internet-facing, widely reachable inside the network, or used as administrative jump points. Those systems are more likely to be probed for enumeration value, and they have a higher chance of turning a small configuration gap into a broad discovery path.
Reviewing vendor guidance and hardening baselines is important because implementation details can vary by Windows version, management tooling, and policy inheritance. If the setting is absent, inconsistent, or overridden elsewhere, the effective security boundary may be weaker than the documented configuration suggests.
Detection And Posture After Change
After tightening the control, validate that remote SAM enumeration is actually blocked where intended and that legitimate administration still works through approved channels. If you are investigating a suspected compromise, review whether account enumeration preceded privilege escalation, host discovery, or targeted lateral movement.
Telemetry should focus on unexpected remote account queries, repeated authentication attempts against management surfaces, and unusual enumeration patterns from systems that should not need directory-style visibility. The control is preventive, but it also changes what should look normal in logs and network behavior.
Risk and Threat Considerations
Overly permissive remote SAM access can turn ordinary Windows management into an attacker reconnaissance channel. The main risk is not only disclosure of account names, but also the way that disclosure helps an intruder identify high-value users, default groups, and likely paths to privilege escalation.
Failure mechanism: An attacker who can reach the host remotely uses SAM calls to enumerate local or directory account information, then combines that data with password attacks, privilege targeting, or lateral movement techniques.
Impact: The result can be faster internal discovery, more accurate targeting of privileged accounts, and a shorter path from initial access to broader compromise.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, NIST CSF 2.0 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Restricting remote SAM calls limits unnecessary account visibility and access paths. |
| AC-7 — Unsuccessful Logon Attempts | Remote enumeration often accompanies probing and repeated access attempts. | |
| Recommendation — Limit remote account enumeration to the minimum administrative need. Correlate repeated remote access attempts with account discovery activity. | ||
| NIST CSF 2.0 | PR.AA-05 — Least Privilege | The setting narrows who can obtain account information over the network. |
| Recommendation — Apply least-privilege access to remote account-management pathways. | ||
| CIS Controls v8 | CIS-6 — Access Control Management | RestrictRemoteSAM is a control over who may query account data remotely. |
| Recommendation — Review and restrict remote account-access permissions on Windows hosts. | ||
| ISO/IEC 27001:2022 | A.8.22 — Segregation of networks | Limiting reachable management surfaces supports controlled administrative exposure. |
| Recommendation — Separate management access paths from general user-network access. | ||
Practitioner Guidance
Why practitioners should care: This setting is most valuable when it is treated as a visibility control, not just a registry value. If remote administration is needed, keep the exception narrow and documented so you can distinguish legitimate management traffic from unnecessary enumeration exposure.
Common misunderstanding: Restricting remote SAM does not make a host fully private or remove all account-risk paths. It only reduces one network-reachable source of identity data, so it should sit alongside broader hardening, access control, and monitoring measures.
Practitioner takeaway: Use this control to reduce remote reconnaissance surface, then verify that the approved administration model still works without reopening broad account enumeration.
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org