Use it when a user cannot sign in, has the wrong profile, sees unexpected group rights or receives Access Denied and the failing identity boundary is not yet known.
Account Troubleshooting
Account Troubleshooting provides an evidence chain for Windows sign-in and identity problems. It separates “account exists” from “credentials accepted,” “token contains expected groups,” “profile loaded” and “resource authorization succeeded.”
1. Exact error at sign-in.
2. Account enabled, not locked/expired: Get-ADUser -Properties LockedOut,PasswordExpired / Get-LocalUser.
3. Lockouts: Security 4740 on the PDC emulator; source caller computer.
4. Logon rights ("Allow log on locally/through RDS")? gpresult.
5. Profile problems → Event 1511/1515.
credentials → account state → logon rights → token → profile load
Collect boundary-specific state from the first failed stage.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Avoid password resets for authorization errors, ACL resets for profile corruption, and profile recreation for stale group tokens. Each can hide evidence and create new problems.
Operational reference
Fast context before you go deeper.
Search-ADAccount -LockedOutPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Reproduce the exact symptom with the affected principal. Record account scope/SID, authentication outcome, fresh token groups, profile path/state and the first denied resource. Stop at the first contradiction rather than changing later layers.
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good means the intended account is enabled, authenticates through the expected authority, receives the expected group/token claims after a fresh session and can perform the original authorized action. Broken evidence includes lockout/expiry, wrong account authority, stale token or missing intended membership. The limit of what it shows is that successful sign-in shows authentication only; effective authorization must be verified on the target resource without granting unnecessary broader rights.
Step 3 Native failure isolation and next-check logic Narrow the fault
If logon fails, identify whether the principal is local or domain and inspect disabled/locked/expired/password state plus domain/DC reachability when applicable. If logon succeeds but access is wrong, inspect group membership and the effective token/session before changing the account. If a membership change was just made, refresh the relevant logon/session rather than repeatedly editing groups. Compare a known-good user against the same resource to separate account-specific state from resource ACL or service failure.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Start with identity scope before changing credentials or permissions.
- Authentication success and authorization success are different evidence.
- Group changes often require a fresh token.
- Profile failures can happen after successful authentication.
- Access denied can be ACL/share/UAC rather than an account failure.
Get-LocalUser— local accountsGet-LocalGroupMember Administrators— local adminswhoami /all— current user, SID, groups, privilegesnet user <user> /domain— domain account details
ReferenceWhat it is1 section · depth on demand
Core model
Account troubleshooting is faster when Windows identity is treated as a chain rather than a single “user account” object. A failure can occur before authentication, during token creation, during profile load or later during resource access.
ReferenceHow it works1 section · depth on demand
How it works
Windows account behavior depends on account source (local or domain), enabled/locked/expired state, credential state, group membership, token construction and the service/resource being accessed. Changing group membership in the directory does not rewrite an already issued logon token, and cached credentials can allow a logon while the domain path is unavailable. Distinguish identity existence, authentication and authorization rather than treating every access failure as an account problem.
ReferenceImportant terms & boundaries3 sections · depth on demand
Security boundary
The major separators are: does the principal resolve? did authentication/logon succeed? does the fresh token contain expected SIDs/privileges? did the intended profile load? does the target security descriptor allow the requested right?
In depth
Local account problems and checks
| Symptom | Check |
|---|---|
| Account locked | Get-LocalUser alice \| Select Enabled, PasswordExpires, LastLogon; lockout policy net accounts |
| Password expired | net user alice → Password expires; service accounts should use gMSA instead |
| User cannot sign in at console | Allow log on locally / Deny log on locally (secpol.msc → User Rights) |
| Admin rights missing | Get-LocalGroupMember Administrators |
| Account disappears/reappears | GPO Restricted Groups or Group Policy Preferences managing local groups |
| Built-in Administrator enabled with weak password | Disable it, use LAPS-managed account |
Windows LAPS for the local administrator
Windows LAPS rotates and stores a unique local administrator password per device in AD or Entra ID.
PS C:\> Get-LapsADPassword -Identity pc042 -AsPlainText
ComputerName : PC042
Account : Administrator
Password : <redacted>
PasswordUpdateTime : 27-11-2026 06:12:40
ExpirationTimestamp : 27-12-2026 06:12:40
PS C:\> Invoke-LapsPolicyProcessing # on the device: apply policy now
PS C:\> Reset-LapsPassword # on the device: rotate immediately
LAPS events are in Microsoft-Windows-LAPS/Operational on the device (policy processing, password updates, failures such as missing permissions to write to AD).
Common LAPS failures
| Event / symptom | Cause |
|---|---|
| Password never updates | Computer lacks permission on its own AD object (Set-LapsADComputerSelfPermission) |
| Admin cannot read the password | Not granted read (Set-LapsADReadPasswordPermission) or encryption with a group they are not in |
| Legacy LAPS and Windows LAPS both configured | Conflicting policies — migrate and remove legacy CSE |
| Password works once then fails | Post-authentication actions rotate it after use (by design) |
Account hygiene
Find stale local accounts across servers (Get-LocalUser | Where { $_.Enabled -and $_.LastLogon -lt (Get-Date).AddDays(-90) }), avoid shared local admin passwords, and remove accounts created for one-off vendor access.
*The LAPS account and expiration fields are fictional examples; no real password or directory record is shown.*
Method
Account troubleshooting resolves logon failures, lockouts, expired passwords and profile problems.
Get-ADUser ahansen -Properties Enabled, LockedOut, PasswordExpired, PasswordLastSet, LastLogonDate, AccountExpirationDate, badPwdCount
Unlock-ADAccount ahansen
Search-ADAccount -LockedOut
net user ahansen /domain
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 20
| Failure reason (4625 status) | Meaning |
|---|---|
| 0xC000006A | Wrong password |
| 0xC0000234 | Account locked out |
| 0xC0000072 | Account disabled |
| 0xC0000071 | Password expired |
| 0xC000015B | Logon type not granted |
| 0xC0000193 | Account expired |
For repeated lockouts, find the source device in event 4740 on the PDC emulator; for profile issues check User Profile Service events.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Users & Groups → Account Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Account failure boundary matrix
Map symptoms to the first useful evidence source.
| Item | Meaning | Boundary |
|---|---|---|
| Unknown username/account | Identity/account record | resolve account and SID |
| Password/logon rejected | Authentication | check account state and auth path |
| Membership not effective | Token | fresh sign-in and group SID check |
| Temporary/wrong desktop | Profile | SID-to-profile mapping/load |
| Access denied to resource | Authorization | ACL/share/UAC after token proven |