A local administrator account that can log on over the network turns one compromised Windows machine into many, because the same name and password often exist on every device built from the same image. Windows has several layers that limit remote use of local accounts: UAC remote restrictions, the special handling of the built-in Administrator (RID 500), the LocalAccountTokenFilterPolicy registry value and the deny logon user rights. They interact in ways that confuse even experienced administrators. This guide explains how each layer behaves, which settings Microsoft's own guidance recommends, how to roll them out without breaking clusters or support tools, and how to detect someone turning them off. It is for Windows and Active Directory administrators. For choosing between LAPS and a vault for the passwords themselves, see LAPS vs PAM Vaulting.
Key takeaways
- Local admins get a filtered token over the network by default. A SAM account in the local Administrators group cannot perform administrative tasks remotely unless LocalAccountTokenFilterPolicy is set to 1.
- The built-in Administrator is the exception to watch. Whether RID 500 is filtered depends on "Admin Approval Mode for the Built-in Administrator account" (FilterAdministratorToken), which is disabled by default.
- Deny rights block logon outright. The well-known SIDs S-1-5-113 (Local account) and S-1-5-114 (Local account and member of Administrators group) let one GPO deny network and Remote Desktop logon to local accounts regardless of their names, including RID 500.
- Unique passwords and remote restrictions solve different halves. LAPS stops one stolen password working everywhere; deny logon rights stop the account being used remotely at all. Use both.
- Watch for the settings being reversed. A registry change to LocalAccountTokenFilterPolicy or an edited user rights GPO quietly reopens lateral movement, so audit both.
Built-in local accounts
Every Windows computer has a local Security Account Manager (SAM) database with its own accounts. The ones that matter here:
- Built-in Administrator (RID 500): SID
S-1-5-<machine>-500. Microsoft documents that it cannot be deleted or locked out and cannot be removed from the Administrators group, but it can be renamed and disabled. Windows setup disables it on client editions and creates another local administrator account instead. On Windows Server 2008 and later it is enabled, and the password must be changed at first logon. Safe mode enables it if no other account is enabled. - Other local administrators: any additional SAM account added to BUILTIN\Administrators, such as an imaging account or a support account created by a build script.
- Non-administrative local accounts: for example the CLIUSR account that Failover Clustering uses for node management. These matter because blocking all local accounts can break them.
The attack path these settings interrupt is well documented: an attacker with administrator rights on one machine takes local password hashes from the SAM (ATT&CK T1003.002 Security Account Manager), then reuses the same local account on other machines (T1078.003 Local Accounts) through T1550.002 Pass the Hash, T1021.002 SMB/Windows Admin Shares or T1021.001 Remote Desktop Protocol. This guide covers prevention and detection only; for the attack mechanics see the Pass-the-Hash and Pass-the-Ticket Guide and the Lateral Movement Guide.
UAC remote restrictions
User Account Control applies token filtering to network logons. Microsoft's description is direct: when a local (SAM) account in the Administrators group connects remotely, for example to an administrative share, it does not connect as a full administrator, has no elevation potential on the remote computer and cannot perform administrative tasks. To administer the machine with that account the user must log on interactively, for example through Remote Desktop where it is allowed. Domain accounts in the local Administrators group are not filtered: they receive a full administrator token remotely.
The built-in Administrator is handled by a separate setting. The Security Options policy User Account Control: Admin Approval Mode for the Built-in Administrator account maps to the registry value FilterAdministratorToken (REG_DWORD, under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System). The protocol specification MS-GPSB defines 0 as Full Token mode for RID 500 and 1 as Admin Approval Mode for RID 500. The policy default is Disabled, in which case the built-in Administrator runs everything with full administrative privileges. Microsoft's security guidance team notes that whether the network restriction applies to the -500 account depends on whether Admin Approval Mode applies to it.
| Account | FilterAdministratorToken | LocalAccountTokenFilterPolicy | Remote admin token over the network |
|---|---|---|---|
| Domain account in local Administrators | Not relevant | Not relevant | Full token (UAC remote restrictions do not apply) |
| Other local administrator (not RID 500) | Not relevant | 0 or absent (default) | Filtered: no remote administration |
| Other local administrator (not RID 500) | Not relevant | 1 | Full token: remote administration possible |
| Built-in Administrator (RID 500) | 0 or Disabled (default) | Any | Full token if the account is enabled: not covered by token filtering |
| Built-in Administrator (RID 500) | 1 or Enabled | 0 or absent | Filtered, like other local administrators |
| Any local account with deny logon rights applied (S-1-5-113 or S-1-5-114) | Any | Any | Logon refused for the denied logon type |
The practical lesson: token filtering alone leaves an enabled RID 500 account with the default policy fully usable over the network. Disable the account where you can, turn on Admin Approval Mode for it, and rely on the deny rights in the next sections rather than on UAC alone.
LocalAccountTokenFilterPolicy
LocalAccountTokenFilterPolicy is a REG_DWORD under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System. Microsoft documents two values: 0 builds a filtered token and is the default, with administrator credentials removed; 1 builds an elevated token. By default the value is not present at all, which behaves as 0.
- Why it gets set to 1: older management, inventory and deployment tools that connect with a local administrator account over SMB or remote WMI fail with access denied, and a support article or installer sets the value to 1 to make them work. That change is machine-wide and applies to every local administrator account.
- What to do instead: manage the machine with domain accounts from a management tier, or with the tool's own agent, and leave the value at 0.
- Enforce the default: Microsoft's security guidance recommends setting the value explicitly to 0 through Group Policy, so that if anything sets it to 1, the next Group Policy refresh restores it. Microsoft's local accounts documentation pairs this with enabling both "Admin Approval Mode for the Built-in Administrator account" and "Run all administrators in Admin Approval Mode", and notes that with the value at 0, local accounts using network logon cannot access administrative shares such as C$ or ADMIN$ or perform remote administration.
Deliver the registry value with a Group Policy Preferences registry item or your device management platform's equivalent, and treat it as a security baseline setting under configuration management (NIST SP 800-53 CM-6 Configuration Settings).
Deny network and RDP logon rights
The deny logon rights are the strongest layer because they refuse the logon instead of reducing what the token can do. Both are under Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment.
Windows 8.1 and Windows Server 2012 R2 introduced two well-known SIDs for this purpose, also made available on Windows 7, Windows 8, Windows Server 2008 R2 and Windows Server 2012 through KB 2871997. S-1-5-113 (NT AUTHORITY\Local account) is added to the token of any local account at logon; S-1-5-114 (NT AUTHORITY\Local account and member of Administrators group) is added only if the local account is in BUILTIN\Administrators. Before these existed, each local account had to be named in the policy.
| User right (constant) | Microsoft security baseline value | Notes |
|---|---|---|
| Deny access to this computer from the network (SeDenyNetworkLogonRight) | Guests; Local account and member of Administrators group (S-1-5-114) | S-1-5-114 rather than S-1-5-113 so that Failover Clustering's non-admin CLIUSR account keeps working. Deny Local account (S-1-5-113) on servers that are not clustered if you want the stricter setting. |
| Deny log on through Remote Desktop Services (SeDenyRemoteInteractiveLogonRight) | Local account (S-1-5-113) in the security guidance blog; Microsoft's local accounts article uses Local account and member of Administrators group | Either blocks administrative local accounts over RDP; S-1-5-113 also blocks non-admin local accounts |
| Both rights, domain groups | Add Domain Admins and Enterprise Admins | Except on domain controllers and dedicated administrative workstations; keeps tier 0 credentials off ordinary machines |
Behaviour to know:
- A deny right supersedes the matching allow right (for network logon, "Access this computer from the network") when an account is subject to both.
- No restart is needed; the change applies at the account's next logon after Group Policy refreshes.
- The SIDs do not affect domain accounts, and they do apply to the built-in -500 account.
- Take care on domain controllers: Active Directory services use network logons, so do not add broad groups there.
- These restrictions are designed for domain-joined machines. On a workgroup computer, denying remote use of local accounts leaves console logon as the only way in.
Rolling out the deny rights
- Inventory first: find tools and services that log on with local accounts over the network (backup agents, monitoring, Web Deploy, cluster nodes, scripts). A failed logon with status 0xC000015B in event 4625 means the account was not granted the logon type, which is exactly what you will see when something breaks.
- Pilot ring: link the GPO to a test OU of workstations, then a small group of member servers, and watch 4625 events with 0xC000015B and help desk tickets for one to two weeks.
- Fix, do not exempt: move dependent tools to domain service accounts or agent-based management rather than excluding machines.
- Expand: roll out to all workstations, then member servers, using S-1-5-114 for network logon on clustered servers.
- Roll back: unlink or filter the GPO from the affected OU; the setting is removed at the next Group Policy refresh, with no restart required.
For Group Policy design and protection of the GPO itself, see the Group Policy Security Guide.
LAPS and unique passwords
Remote restrictions stop a local account being used across the network; unique passwords stop a password taken from one machine being valid on any other. Microsoft's local accounts guidance lists LAPS as the first preference for randomising local account passwords, ahead of privileged password management tools and custom scripts.
- Windows LAPS: built into supported Windows and Windows Server versions (with the April 11, 2023 update or later on Windows 10, Windows 11 and Windows Server 2019 and 2022), free, and backs up the password to Microsoft Entra ID or Windows Server Active Directory, but not both for one device. It can also back up the DSRM password on domain controllers.
- Automatic Account Management: requires Windows 11 24H2 or later, or Windows Server 2025 or later.
- Which account to manage: keep RID 500 disabled where possible and let LAPS manage the one local administrator account you keep for break-glass and offline support.
See the Local Administrator Password Solution (LAPS) Guide for configuration and Legacy LAPS vs Windows LAPS for migration.
Detecting policy changes and misuse
| What to watch | Event or source | Notes |
|---|---|---|
| LocalAccountTokenFilterPolicy or FilterAdministratorToken changed | 4657 "A registry value was modified" (Audit Registry) | Only logged if the key's SACL audits Set Value; ATT&CK T1112 Modify Registry. Also check with configuration compliance scans. |
| Deny logon GPO edited | Directory service change auditing on Group Policy objects at domain controllers; GPO change control records | ATT&CK T1484.001 Group Policy Modification. Event 4704 covers user rights but not logon rights, so do not rely on it for deny logon changes. |
| Network logon by a local account | 4624 with Logon Type 3 and a local account domain (the computer name) | Should be rare once restrictions are in place; investigate any source host that is not a known support tool |
| Blocked attempts | 4625 with status 0xC000015B, Logon Type 3 or 10 | Shows the control working and may reveal lateral movement attempts |
| RID 500 enabled or used | Account enable events and 4624 for the -500 SID | Alert when the built-in Administrator is enabled outside a break-glass procedure |
Metrics: percentage of domain-joined machines with the deny network and RDP rights applied; percentage with LocalAccountTokenFilterPolicy absent or 0; percentage with RID 500 disabled; percentage with LAPS-managed passwords; count of successful local-account network logons per week (target near zero). Centralise the events with the Windows Event Forwarding Guide and see the Active Directory Security Monitoring and Event IDs Guide.
Framework mapping
| Control | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | MITRE ATT&CK mitigated or detected |
|---|---|---|---|
| Deny network and RDP logon for local accounts | AC-17 Remote Access; AC-6(5) Privileged Accounts | PR.AA-05 | T1078.003, T1021.001, T1021.002, T1550.002 |
| UAC token filtering enforced (LATFP 0, FilterAdministratorToken 1) | CM-6 Configuration Settings; CM-7 Least Functionality | PR.PS-01 | T1021.002, T1112 (detection of reversal) |
| Unique, rotated local passwords (LAPS) | IA-5 Authenticator Management; AC-2 Account Management | PR.AA-01 | T1003.002 impact limited to one host; T1078.003 |
| GPO change monitoring | CM-6; AU-6 Audit Record Review | DE.CM-03 | T1484.001 |
Common failure patterns
- Relying on UAC with RID 500 enabled: the built-in Administrator stays outside token filtering under the default policy, so an enabled, shared-password RID 500 account remains a remote admin account.
- LocalAccountTokenFilterPolicy set to 1 in the golden image: a one-off fix for an imaging or inventory tool is baked into every build and never removed.
- Denying S-1-5-113 on cluster nodes: breaks Failover Clustering's CLIUSR account; use S-1-5-114 on clustered servers.
- Exempting machines instead of fixing tools: exclusions for "the backup server" or "the monitoring server" are often the highest-value systems in the estate.
- Same local password on every device: without LAPS, one SAM hash gives access wherever a restriction has gaps. See LAPS vs PAM Vaulting.
- No auditing on the registry key: 4657 is only generated when a Set Value SACL is in place, so a reversal goes unseen.
Practitioner checklist
- Disable the built-in Administrator (RID 500) wherever a LAPS-managed alternative exists.
- Enable "User Account Control: Admin Approval Mode for the Built-in Administrator account" and "Run all administrators in Admin Approval Mode".
- Set LocalAccountTokenFilterPolicy explicitly to 0 through Group Policy.
- Apply "Deny access to this computer from the network" to Guests and S-1-5-114 on domain-joined workstations and member servers.
- Apply "Deny log on through Remote Desktop Services" to local accounts (S-1-5-113 or S-1-5-114).
- Add Domain Admins and Enterprise Admins to both deny rights except on domain controllers and administrative workstations.
- Deploy Windows LAPS for the remaining local administrator account.
- Audit the Policies\System key with a Set Value SACL and alert on 4657 for the two values.
- Alert on successful local-account network logons (4624, Logon Type 3) and review 0xC000015B failures.
- Report coverage metrics monthly and investigate every exemption.
Standards and references
- Microsoft Learn: Description of User Account Control and remote restrictions
- Microsoft Learn: Local Accounts
- Microsoft Security Guidance: Blocking remote use of local accounts
- Microsoft Open Specifications: MS-GPSB FilterAdministratorToken
- Microsoft Learn: Deny access to this computer from the network
- Microsoft Learn: Security identifiers
- Microsoft Learn: Windows LAPS overview
- Microsoft Learn: Event 4657, a registry value was modified
Related NHI Mgmt Group resources: LAPS vs PAM Vaulting · Local Administrator Password Solution (LAPS) Guide · Tiered Administration and Enterprise Access Model Guide · Pass-the-Hash and Pass-the-Ticket Guide