Home › Entra ID › AADSTS50055

Entra ID · AADSTS50055 · Windows 11 22H2

Entra ID AADSTS50055 Error on Windows 11 22H2: Password Expired Sign-In Failure

AADSTS50055 occurs when a user's password expires, preventing sign-in. Resolve by resetting the password via Entra ID portal or prompting the user during login.

Error Details

FactValueSourceNote
Exact error stringAADSTS50055: The specified password has expired.Microsoft login screenDisplayed during authentication
Affected OS buildWindows 11 22H2 (22000.xxx and above)Windows Update historyBuild-specific behavior
Registry key for password policyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\PasswordExpiryWarningLocal Group PolicyControls expiration warning days
Authentication endpointhttps://login.microsoftonline.comEntra ID serviceError originates from this URL
Log line signatureUser authentication failed: AADSTS50055Azure AD sign-in logsCheck 'Error Description' field

Log Files to Check

What This Error Actually Means

The error AADSTS50055 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 key HKLM\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 diagnose AADSTS50055, 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 in PasswordExpiryWarning) 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 key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Profiles for stale profiles.

Fix Procedure

  1. **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
  2. **Adjust Local Warning Policy**: Set the registry key PasswordExpiryWarning to 14 days (20160 minutes): Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name PasswordExpiryWarning -Value 20160
  3. **Update Entra ID Password Policy**: In the Entra ID portal, navigate to Users > Password reset > Password policies and configure a custom policy with a longer expiration period.
  4. **Deploy Policy via Intune**: Use OMA-URI ./Device/Vendor/MSFT/Policy/Config/Password/PasswordExpiryDays with a value of 90 to enforce password expiration policies on enrolled devices.
  5. 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 CodeDescriptionDistinguishing Factor
AADSTS50055Password expiredUser must reset password immediately
AADSTS50057Password complexity failureError occurs during password change, not sign-in
AADSTS50058Incorrect passwordTypically accompanied by lockout after multiple attempts

Verification

After applying fixes, verify resolution by: 1. Checking the Security log for absence of Event ID 4625 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 for AADSTS50055 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.

Sources & References

Related Guides

Get new error code fixes by email

Product-specific solutions for Intune, Autopilot, SCCM and Entra ID — straight to your inbox. No spam.