Error Details
| Fact | Value | Source | Note |
|---|---|---|---|
| Exact error string | AADSTS50055: The specified password has expired. | Microsoft login screen | Displayed during authentication |
| Affected OS build | Windows 11 22H2 (22000.xxx and above) | Windows Update history | Build-specific behavior |
| Registry key for password policy | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\PasswordExpiryWarning | Local Group Policy | Controls expiration warning days |
| Authentication endpoint | https://login.microsoftonline.com | Entra ID service | Error originates from this URL |
| Log line signature | User authentication failed: AADSTS50055 | Azure AD sign-in logs | Check 'Error Description' field |
Log Files to Check
C:\Windows\System32\Winevt\Logs\Security.evtxAzureADSigninLogs.log (via Microsoft Entra ID portal > Audit logs)
What This Error Actually Means
The errorAADSTS50055 is a Microsoft Entra ID authentication failure code indicating that the user's password has expired. This error is raised by the Azure AD authentication service during the sign-in process when the provided credentials are valid but the password has exceeded its configured lifetime. The error string "The specified password has expired" is returned by the authentication endpoint https://login.microsoftonline.com to signal that the user must reset their password before accessing resources. This error is distinct from account lockout or incorrect password errors, as it specifically relates to password expiration policies enforced by Entra ID. The root component responsible for this error is the Azure AD identity platform, which evaluates password age against organizational policies during authentication.
Affected Versions and Scope
This error affects Windows 11 22H2 (OS build 22000.xxx and above) when users attempt to authenticate with expired passwords. The issue is not tied to a specific Entra ID tenant configuration but is influenced by password policies configured in the tenant. Tenants using the default Entra ID password expiration policy (90 days) are most likely to encounter this error. Tenants with custom password policies (e.g., "password never expires") or those using self-service password reset (SSPR) workflows may mitigate the issue but are not immune. The registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\PasswordExpiryWarning controls the local warning period displayed to users before password expiration, but this does not override Entra ID's enforcement of password expiration at the directory level.
Where To Look First: Logs and Event IDs
To diagnoseAADSTS50055, start with the following logs and event IDs:
1. **Windows Security Log**: C:\Windows\System32\Winevt\Logs\Security.evtx. Look for Event ID 4625 (failed logon) with the substatus 0xC0000071 ("The specified password has expired"). Use PowerShell to filter:
Get-WinEvent -LogName Security | Where-Object { $_.Id -eq 4625 -and $_.Properties[8].Value -eq 0xC0000071 }
2. **Azure AD Sign-In Logs**: AzureADSigninLogs.log (accessible via Entra ID portal > Audit logs). Search for the literal log line "User authentication failed: AADSTS50055". Use the Microsoft Graph API to query:
Get-MgAuditLogSignIn -Filter 'status/errorCode eq 50055'
3. **Local Group Policy Log**: Verify the registry key PasswordExpiryWarning is set to a non-zero value (in days) to ensure users receive local warnings before expiration.
Root Causes
1. Expired Password with No Active Warning
The user's password has expired, and the local warning period (configured inPasswordExpiryWarning) was either too short or disabled. This can be confirmed by checking the user's last password change date via:
Get-ADUser -Identity username -Properties PasswordLastSet | Select-Object PasswordLastSet
2. Conflicting Password Policies
A user may be subject to multiple password policies (e.g., via group-based policies in Entra ID). This can be diagnosed by checking the user's assigned policies in Entra ID > Users > Password policies.3. Device-Specific Credential Caching
On Windows 11 22H2, cached credentials may persist after password expiration, leading to sign-in failures. Check the registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Profiles for stale profiles.
Fix Procedure
- **Reset the User's Password**:
Set-ADUser -Identity username -Replace @{PasswordExpired=$false}Follow with a forced password change at next logon:Set-ADAccountPassword -Identity username -NewPassword (Read-Host -AsSecureString "New Password") -Reset - **Adjust Local Warning Policy**:
Set the registry key
PasswordExpiryWarningto 14 days (20160 minutes):Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name PasswordExpiryWarning -Value 20160 - **Update Entra ID Password Policy**:
In the Entra ID portal, navigate to
Users > Password reset > Password policiesand configure a custom policy with a longer expiration period. - **Deploy Policy via Intune**:
Use OMA-URI
./Device/Vendor/MSFT/Policy/Config/Password/PasswordExpiryDayswith a value of 90 to enforce password expiration policies on enrolled devices.
Modifying password policies in Intune may force password resets on enrolled devices, disrupting user sessions. Test in a pilot group first.
Error Code Variants
| Error Code | Description | Distinguishing Factor |
|---|---|---|
| AADSTS50055 | Password expired | User must reset password immediately |
| AADSTS50057 | Password complexity failure | Error occurs during password change, not sign-in |
| AADSTS50058 | Incorrect password | Typically accompanied by lockout after multiple attempts |
Verification
After applying fixes, verify resolution by: 1. Checking the Security log for absence of Event ID4625 with substatus 0xC0000071.
2. Using the Microsoft Graph API to confirm the user's password status:
Get-MgUser -UserId username | Select-Object PasswordPolicies
3. Testing sign-in via dsregcmd /status to ensure Azure AD registration succeeds without error.
Prevention
To prevent recurrence: 1. Enable self-service password reset (SSPR) in Entra ID > Users > Password reset. 2. Deploy a custom password policy via Intune admin center > Devices > Device configuration > Profiles > Password policies. 3. Monitor Azure AD sign-in logs forAADSTS50055 using PowerShell:
Get-AzLog -ResourceGroupName "EntraID-Logs" -StartTime (Get-Date).AddDays(-7) | Where-Object { $_.OperationName -eq "Sign-in activity" -and $_.Status -eq "Failed" }
Use the
Get-AzADUser -Filter "passwordPolicies eq 'DisablePasswordExpiration'" cmdlet to identify users exempt from expiration policies.