Home › Entra ID › AADSTS120000

Entra ID · AADSTS120000 · Windows 11 22H2

Entra ID AADSTS120000 Windows 11 22H2 Password Reset Required

The error occurs due to an Azure AD policy requiring a password reset. Users must change their password through the account's security settings or Microsoft Authenticator app.

Error Details

FactValueSourceNote
Exact error stringAADSTS120000: Password change required before sign-in — account policy forces reset at next authentication.Windows Event Viewer Security logs->
Affected OS build rangeWindows 11 22H2 (OS Build 22621.755)System Information tool or msinfo32.exe->
Registry key involvedHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\SystemRegistry Editor (regedit)->
Relevant service/endpoint URLhttps://login.microsoftonline.comNetwork Monitor or Fiddler traces->
Log line signatureMicrosoft-Windows-Security-AuditingWindows Event Viewer Security logs->

Log Files to Check

What This Error Actually Means

The error AADSTS120000 is a hexadecimal representation of an Azure Active Directory (Azure AD) authentication failure. The prefix AADSTS indicates the error originates from the Azure AD Security Token Service (STS), which handles authentication and token issuance. This specific error occurs when a user account is subject to a password policy that enforces a password reset at the next login attempt. The error is raised during the authentication handshake between the client (Windows 11 device) and the Azure AD endpoint https://login.microsoftonline.com. The system enforces this policy to comply with tenant-level security requirements, such as password expiration or conditional access rules. The error is distinct from generic password expiration warnings because it blocks sign-in entirely until the password is reset.

Affected Versions and Scope

This error affects devices running **Windows 11 22H2 (OS Build 22621.755)** and any tenant configurations where Azure AD enforces password reset at next login. The scope includes scenarios where: - The user account has a password expiration policy set to force reset on next login. - Conditional access policies or Azure AD Password Protection policies trigger a reset requirement. - The device is managed by Intune with compliance policies tied to password state. Devices **not affected** include: - Windows 11 versions prior to 22H2 (e.g., 21H2) if they do not enforce the same policy. - Devices using Azure AD join without password policies applied. - Hybrid Azure AD-joined devices where on-premises policies override cloud policies.

Where To Look First: Logs and Event IDs

The primary logs to investigate are: 1. **Windows Security Log**: Located at C:\Windows\System32\winevt\Logs\Security.evtx. Filter for the source Microsoft-Windows-Security-Auditing and look for **Event ID 4625** (failed logon) with the substatus 0x21011, which maps to AADSTS120000. 2. **Intune Management Extension Log**: Located at C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log. Search for entries containing Password change required before sign-in or AADSTS120000. Use PowerShell to query the Security log: Get-WinEvent -LogName "Security" | Where-Object { $_.Id -eq 4625 -and $_.Properties[8].Value -eq 272117 }

Root Causes

1. Azure AD Password Policy Enforcement

Azure AD enforces password reset if the account's PasswordPolicies setting includes EnforcePasswordExpiration and the password is expired. Verify this by checking the user's passwordPolicies attribute via Microsoft Graph: Get-MgUser -UserId "[email protected]" | Select-Object PasswordPolicies

2. Local Group Policy Conflict

A misconfigured registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System (e.g., dontdisplaylastusername or forceguestauth) might interfere with credential caching. Use Get-ItemProperty to inspect this key.

3. Intune Compliance Policy Trigger

An Intune compliance policy might flag the device as non-compliant if the user hasn't reset their password. Check policies under **Intune admin center > Devices > Compliance policies** for rules tied to password state.

4. Conditional Access Policy

A Conditional Access policy requiring password change due to risk detection (e.g., sign-in from a new location) can trigger this error. Review policies in **Entra ID > Security > Conditional Access**.

Fix Procedure

  1. Reset the user's password via Set-MgUserPassword in the Microsoft Graph PowerShell module: Set-MgUserPassword -UserId "[email protected]" -PasswordProfile (New-Object Microsoft.Graph.PowerShell.Models.MicrosoftGraphPasswordProfile -Property @{Password="P@ssw0rd"; ForceChangePasswordNextSignIn=$false})
  2. Update the registry key to ensure proper credential handling: Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "dontdisplaylastusername" -Value 1
  3. Deploy a configuration profile in Intune to enforce password policies: - Navigate to **Intune admin center > Devices > Configuration profiles > Create profile**. - Select **OMA-URI** with the value .//Device/Vendor/MSFT/PassPolicies/PasswordExpiry and set to Enabled.
  4. Modifying the registry directly can cause device instability. Always back up the registry before changes.

Error Code Variants

Error Code Description Distinguishing Factor
AADSTS120000 Password change required before sign-in Blocks authentication entirely
AADSTS50055 User account is disabled Account status is explicitly disabled in Azure AD
AADSTS50057 Password expired Allows sign-in but forces immediate reset

Verification

After applying fixes, verify resolution by: 1. Checking the Security log for **Event ID 4624** (successful logon) with no substatus errors. 2. Running dsregcmd /status to confirm Azure AD registration state shows Joined. 3. Using Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'" to ensure the device is compliant.

Prevention

To prevent recurrence: 1. Enforce Azure AD password policies to avoid expiration surprises. Use Set-MgPolicyPasswordProtectionPolicy to configure expiration windows. 2. Align Intune compliance policies with Azure AD rules. Navigate to **Intune admin center > Devices > Compliance policies** and add a condition for Password state. 3. Monitor Azure AD sign-in logs for **Event ID 5140** (password change) to proactively address policy violations.
Use Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" to quickly identify Intune-related authentication issues.

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.