Join our Newsletter — 33% off our NHI Course
Home› Guides› 0xC000015B Logon Type Not Granted: User Rights and…
Guide Privileged Access (PAM)

0xC000015B Logon Type Not Granted: User Rights and Tiering

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 15 min read
On this page

0xC000015B tells you that Windows checked the credentials, found them valid, and then refused the logon because the account does not hold the user right for that kind of logon on that machine. It is one of the most useful codes in Event 4625, because it separates "wrong password" noise from a policy decision. This reference explains where the code appears, how each logon type maps to an allow and a deny user right, the common causes for people, services and scheduled tasks, and how to fix it without weakening Active Directory tiering. It is for Windows administrators restoring a service and SOC analysts deciding whether a burst of failures is misconfiguration or probing.

Key takeaways

  • The password was right. 0xC000015B (STATUS_LOGON_TYPE_NOT_GRANTED) is raised after authentication succeeds, when the account lacks the logon right for the requested logon type on the target computer.
  • Deny beats allow. If an account holds both the allow and the deny right for the same logon type, the deny right wins, so adding the allow right rarely fixes a deny.
  • Logon type points to the right. Read the Logon Type field first: 2 maps to Allow log on locally, 3 to Access this computer from the network, 4 to Log on as a batch job, 5 to Log on as a service and 10 to Allow log on through Remote Desktop Services.
  • Under tiering, some denials are success. A Domain Admin refused on a workstation is the tier model working, and the event is evidence of a risky habit or an attempted lateral movement, not a ticket to remove the deny.
  • Fix at the source, not the symptom. Change the Group Policy object that governs the server, grant the narrowest right to a dedicated account or gMSA, and never take a privileged group out of a deny right to make one job work.

What 0xC000015B means

Microsoft's NTSTATUS reference ([MS-ERREF]) defines 0xC000015B as STATUS_LOGON_TYPE_NOT_GRANTED: a user has requested a type of logon, for example interactive or network, that has not been granted, and an administrator controls who can log on interactively and through the network. The Event 4625 documentation describes the same code as the user not having been granted the requested logon type, also called the logon right, at that machine.

Windows separates two questions at logon. The first is "are these credentials valid?", answered by Kerberos, NTLM or the local Security Accounts Manager. The second is "may this account log on in this way here?", answered by the Local Security Authority on the target computer using the effective user rights assignment. 0xC000015B is a "no" to the second question only. Anyone who receives it has already presented working credentials.

CodeNameWhat it tells youCredentials valid?
0xC000015BSTATUS_LOGON_TYPE_NOT_GRANTEDAccount lacks the logon right (or holds the deny right) for this logon type on this computerYes
0xC000006DSTATUS_LOGON_FAILUREBad user name or authentication information; read Sub Status for detailNo
0xC000006ASTATUS_WRONG_PASSWORDUser name exists, password wrongNo
0xC0000070STATUS_INVALID_WORKSTATIONAccount restricted from logging on from the source workstation (Log On To list)Yes
0xC0000413STATUS_AUTHENTICATION_FIREWALL_FAILEDTarget protected by an authentication firewall (for example selective authentication across a trust); the account is not allowed to authenticate to itYes

For the field by field structure of logon events and the full list of logon types, see the Windows Logon Types and Authentication Events.

Where it appears (Event 4625, Sub Status)

The code surfaces in several places, and the same root cause can look different depending on who sees it first.

  • Security log, Event 4625: "An account failed to log on" is written on the computer that refused the logon (the target, not the domain controller). Under Failure Information you see Failure Reason, Status and Sub Status. Microsoft notes that Status gives the reason and Sub Status adds detail. For a logon type refusal the code 0xC000015B is the useful value; check both fields, because tools and SIEM parsers differ in which one they keep, and Microsoft's own monitoring table lists the code against "Status or Sub Status".
  • System log, Event 7041: when a service cannot start, the Service Control Manager writes that the service was unable to log on as its account "due to the following error: Logon failure: the user has not been granted the requested logon type at this computer", and adds that the account does not have the required "Log on as a service" right. The Services console shows error 1069, "The service did not start due to a logon failure".
  • Interactive and Remote Desktop sign-in: the user sees a message that the sign-in method is not allowed, and the target writes 4625 with Logon Type 2 or 10.
  • Scheduled tasks: a task configured to "Run whether user is logged on or not" uses a batch logon (type 4). If the account lacks Log on as a batch job, or holds the deny right, the task fails to start and 4625 records Logon Type 4.
  • Network access: a file share, remote management or application call that needs a network logon (type 3) fails with access denied, and 4625 on the server shows Logon Type 3.

When you read a 4625 with this code, capture these fields together: Account For Which Logon Failed (Security ID, Account Name, Domain), Logon Type, Workstation Name and Source Network Address, Caller Process Name, and Logon Process and Authentication Package. Together they answer who, from where, by what method and through which process. See the Windows Event Log Guide for collection and retention.

Logon types and the matching user rights

User rights are set under Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment, either locally (secpol.msc) or, in a domain, through Group Policy. Each logon type that can produce 0xC000015B has an allow right and a deny right.

Logon Type (4625)Typical useAllow right (constant)Deny right (constant)
2 InteractiveConsole sign-in, RunAsAllow log on locally (SeInteractiveLogonRight)Deny log on locally (SeDenyInteractiveLogonRight)
3 NetworkSMB shares, remote management, many application callsAccess this computer from the network (SeNetworkLogonRight)Deny access to this computer from the network (SeDenyNetworkLogonRight)
4 BatchScheduled tasks stored with credentials, some application poolsLog on as a batch job (SeBatchLogonRight)Deny log on as a batch job (SeDenyBatchLogonRight)
5 ServiceWindows services started by the Service Control ManagerLog on as a service (SeServiceLogonRight)Deny log on as a service (SeDenyServiceLogonRight)
10 RemoteInteractiveRemote Desktop ServicesAllow log on through Remote Desktop Services (SeRemoteInteractiveLogonRight)Deny log on through Remote Desktop Services (SeDenyRemoteInteractiveLogonRight)
  • Precedence: Microsoft's setting reference states that Deny log on locally supersedes Allow log on locally when an account is subject to both, and the same pattern applies to each allow and deny pair. Membership is evaluated through groups, so a deny granted to a group the account belongs to (directly or nested) blocks it.
  • Remote Desktop needs two things: the RDP logon itself needs the Remote Desktop Services right, which on most systems is granted through the Remote Desktop Users and Administrators groups. Being a member of the group is not enough if a GPO has replaced the right's membership list.

Common causes

SymptomLogon TypeLikely causeFirst check
Service fails after a password change or rebuild, error 1069, Event 70415Account was never granted Log on as a service by GPO; the right was added locally by the Services console and then removed at the next Group Policy refreshRun gpresult /h on the server and find the GPO that defines Log on as a service
Scheduled task stops running4Task account not in Log on as a batch job, or a hardening baseline added it (or a group it belongs to) to Deny log on as a batch jobCompare the task's "Run as" account with both batch rights in the resultant set of policy
Administrator cannot RDP to a workstation10Tier 0 account blocked from Tier 2 by design, or the user is missing from Remote Desktop UsersConfirm which tier the account and the target belong to before changing anything
Application server cannot reach a share3Service identity in a group that is in Deny access to this computer from the network, often "Local account" on a hardened member serverExpand the deny groups and check membership, including nested groups
Bursts from one source against many hosts3 or 10Valid credentials being tried across the estateTreat as a security event (see detection below)

The most frequent operational cause is a local fix that Group Policy later overrides. Microsoft's SQL Server troubleshooting article for error 1069 describes exactly this: the right is assigned, keeps disappearing, and a GPO linked to the computer is removing it. If any GPO defines a user right, it replaces the local list for that right rather than adding to it, so the grant has to be made in that GPO.

Fixing it safely

  1. Identify the type and the account. From 4625 or 7041, record the account, the Logon Type and the target. Decide whether the account should ever log on that way there.
  2. Find the effective policy and its source. Run gpresult /h report.html (or the Resultant Set of Policy tool) on the target. The User Rights Assignment section names the winning GPO for each right. Check both the allow and the deny right.
  3. Decide whether the refusal is correct. If a privileged account is being denied on a lower-tier system, the denial is intended. Change the process (use the correct tier account, a jump host or a privileged access workstation), not the policy.
  4. Grant the narrowest right to the narrowest identity. For services, grant Log on as a service to the specific service account or group managed service account, not to Domain Users or a broad group. Prefer a security group named for the purpose so the grant is auditable. See the Group Managed Service Accounts (gMSA) Guide.
  5. Change the GPO, scoped tightly. Edit the GPO that already defines the right, or create one linked only to the OU of the affected servers. Remember that defining a right in a GPO replaces the whole list, so include the existing required members that the baseline and installed services rely on.
  6. Test on one server. Use security filtering or a pilot OU, run gpupdate /force, restart the service or task, and confirm a 4624 with the expected logon type replaces the 4625.
  7. Roll back cleanly. Back up the GPO first (Backup-GPO or the GPMC backup). If something else breaks, restore the backup rather than hand-editing in a hurry.

What not to do: remove Domain Admins, Enterprise Admins or a Tier 0 group from a deny right because one job fails; add Everyone or Authenticated Users to an allow right; or grant Allow log on locally to a service account that only needs Log on as a service. Each of these quietly widens the paths an attacker can use with stolen credentials. The How to audit user rights assignments for service accounts guide covers reviewing these grants across an estate.

Security use: tiering and deny rights as a control

Deny logon rights are one of the cheapest and most effective controls in an Active Directory tier model. Microsoft's Active Directory best practice guidance for securing Domain Admins recommends a GPO, linked to the OUs that hold member servers and workstations (not domain controllers), that adds Domain Admins to five rights: Deny access to this computer from the network, Deny log on as a batch job, Deny log on as a service, Deny log on locally and Deny log on through Remote Desktop Services. The same pattern extends to every Tier 0 group and, in the other direction, to keeping Tier 2 accounts off Tier 1 servers.

The purpose is to stop privileged credentials ever being exposed on a machine where they could be harvested. Microsoft's enterprise access model, which builds on the earlier tier model, describes the goal as enforcing a hierarchy so that lower planes cannot control higher ones: Tier 0 maps to the control plane, Tier 1 to the management and data or workload planes, and Tier 2 to user and app access. See the Active Directory Tiering vs Red Forest guide for design choices.

Denial seenUnder tiering it meansResponse
Tier 0 account, type 10 or 2, on a workstationControl worked; an admin tried to use a domain admin account on a user deviceCoach the admin, check whether credentials were typed anywhere else, confirm they use a privileged access workstation
Tier 0 account, type 3, from a workstation to many serversPossible lateral movement with stolen credentialsInvestigate as an incident, verify the account owner's activity, consider a credential reset
Service account, type 2 or 10, anywhereSomeone is trying to use a service identity interactivelyInvestigate; service accounts should only show types 4 or 5 (and 3 to the resources they call)
Tier 1 account, type 5, on a new serverUsually a missing grant during a buildFix through the server's GPO, as above

Service accounts deserve their own deny set: deny interactive and Remote Desktop logon to every account that runs a service or task. A refusal then flags misuse instantly. See the How to detect interactive logons by service accounts guide and the Service Account Security Guide.

Detecting repeated denials

  • Privileged denials: alert on any 4625 with 0xC000015B where the account is a member of a Tier 0 group. Each one is either a policy breach by an admin or an attacker with valid credentials.
  • Logon type mismatch: Microsoft's 4625 guidance recommends monitoring Logon Type for a mismatch between the type and the account, for example Batch or Service used by a member of a domain administrative group.
  • Spread: the same account refused on more than a handful of hosts in a short window, or one source refused across many accounts, suggests credential testing (ATT&CK T1078 Valid Accounts, T1078.002 Domain Accounts, and T1021.001 Remote Desktop Protocol for type 10).
  • Policy change correlation: pair denials with Event 4704 (a user right was assigned) and 4705 (a user right was removed), and with GPO change auditing, so a sudden end to denials after a policy edit is reviewed.
  • Service health: alert on System Event 7041 on servers, so a missing service right is fixed by change control rather than by an urgent local edit.

Metrics: number of 0xC000015B events for Tier 0 accounts per month (expected to fall as habits change); percentage of service accounts with an explicit interactive and RDP deny; count of user rights defined locally rather than by GPO on servers; mean time to resolve Event 7041 through change control; number of GPO edits that removed a privileged group from a deny right (target zero).

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5AC-6 Least Privilege, AC-6(5) Privileged AccountsLogon rights limit where and how accounts, especially privileged ones, can be used
NIST SP 800-53 Rev. 5AC-17 Remote Access, AU-6 Audit Record Review, Analysis, and ReportingRDP rights and review of 4625 refusals
NIST CSF 2.0PR.AA-05, DE.CM-09Permissions defined and enforced with least privilege; monitoring of computing environments for adverse events
MITRE ATT&CK v20T1078.002, T1021.001, T1543.003, T1053.005Domain account misuse, RDP lateral movement, services and scheduled tasks that rely on service and batch rights

Practitioner checklist

  • Parse both Status and Sub Status from 4625 in your SIEM and keep the Logon Type field.
  • Apply the Domain Admins deny GPO (five deny rights) to member server and workstation OUs, and extend it to every Tier 0 group.
  • Deny Allow log on locally and Remote Desktop logon to every service account; grant only Log on as a service or batch as needed.
  • Define logon rights in GPOs scoped to server role OUs, and remove reliance on local edits that the next refresh will overwrite.
  • Alert on 0xC000015B for privileged accounts and on service accounts refused for interactive or RDP logon.
  • Alert on System Event 7041 and fix through change control, with a GPO backup before each edit.
  • Audit 4704 and 4705 and GPO changes, and review any edit that removes a group from a deny right.
  • Record each service account's granted rights, GPO and owner in the inventory and review them at least annually.

Standards and references

Related NHI Mgmt Group resources: Windows Logon Types and Authentication Events · How to audit user rights assignments for service accounts · Active Directory Tiering vs Red Forest · Privileged Access Workstations Guide · Group Policy Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

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.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.