ERROR_PWD_HISTORY_CONFLICT: Causes, Fixes, and Prevention

TutorialPedia Team

Date Updated

You go to change a Windows password and get turned away because the "new" password is one you have used before. That refusal is the Windows error ERROR_PWD_HISTORY_CONFLICT (error code 617), and it is not a glitch — it is a password policy doing exactly what it was configured to do. Whether you are an end user locked out of a favorite password, a help-desk technician troubleshooting an account, or an administrator deciding how strict the policy should be, understanding this error saves time and keeps your environment secure.

This guide explains what the error means, why it happens, how to resolve it on standalone PCs and in Active Directory, how it behaves in hybrid and Microsoft Entra environments, and how to prevent it from becoming a help-desk ticket in the first place.

Table of Contents#

What Is ERROR_PWD_HISTORY_CONFLICT?#

ERROR_PWD_HISTORY_CONFLICT is a documented Windows system error code. Microsoft's Win32 error reference defines it as 617 (0x269) with the message:

You have attempted to change your password to one that you have used in the past. The policy of your user account does not allow this. Please select a password that you have not previously used.

Three details matter here:

  1. It is a policy result, not a malfunction. Windows (or the domain controller behind it) compared your proposed password with the account's remembered password history and found a match.
  2. It fires on password changes, not on sign-in. You see it while setting a new password — from the Windows security screen, a command, a script, or an application that changes passwords on your behalf.
  3. It is not a stop error (BSoD). Nothing crashes; the change request is simply rejected and the old password stays in force.

In short: the account remembers a certain number of your previous passwords, and the one you picked is still on that list.

The same underlying problem does not always surface as code 617. Different APIs and tools report it differently, which is why the wording on your screen may not match the title of this article.

CodeSymbolTypical messageWhere it comes from
617 (0x269)ERROR_PWD_HISTORY_CONFLICTYou have attempted to change your password to one that you have used in the past...Win32 system error codes (WinError.h)
1325 (0x52D)ERROR_PASSWORD_RESTRICTIONUnable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.Win32 system error codes
2244NERR_PasswordHistConflictThis password cannot be used now.Network Management (NetAPI) error codes
2245NERR_PasswordTooShortThe password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.Network Management (NetAPI) error codes
2246NERR_PasswordTooRecentThe password of this user is too recent to change.Network Management (NetAPI) error codes

Note that 2245 is a Network Management error (NERR_PasswordTooShort), not to be confused with ERROR_PASSWORD_RESTRICTION, which is 1325. If you are debugging a script or a third-party tool, checking which of these codes it receives tells you which API family handled the change — for example, NetUserChangePassword reports NetAPI codes, and its documentation notes that a change can fail because the password is "too recent in its change history."

Why the Error Happens: How Password History Works#

The Enforce password history setting#

The setting behind the error is Enforce password history, part of the Windows Password Policy:

Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy

It determines how many unique new passwords must be associated with an account before an older password can be reused. The configurable range is 0 through 24, and in a domain the Default Domain Policy ships with 24 passwords remembered. The account retains password hashes from earlier changes so new candidates can be compared against them without keeping old secrets in readable form.

Setting the value to 0 disables the check entirely — and with it, one of the cheapest defenses against password cycling.

The Minimum password age trap#

History alone does not stop determined recyclers: a user could change their password 24 times in a row and land back on the favorite. That is why Minimum password age exists alongside it. With a minimum age of 1 day (the Windows security baseline recommendation and the domain default), a password must be kept for at least a day before it can be changed again, so fast-forwarding through the history is not possible.

Microsoft's own documentation uses the example of a password like Ra1ny day! with a history of 24: if the minimum age is 0, the user can change the password 24 consecutive times and reuse Ra1ny day!; a minimum age of 1 day blocks that. The flip side is the error NERR_PasswordTooRecent (2246): try to change a password again before the minimum age has elapsed and Windows refuses, even if the new password would otherwise be fine.

Where the history is enforced#

  • Local accounts on a standalone PC or member server: the local security policy (Security Accounts Manager) enforces the check.
  • Active Directory accounts: the domain controller enforces the domain password policy, or a fine-grained password policy (Password Settings Object) if one applies to the user.
  • Microsoft Entra ID cloud-only accounts: Entra's own password policy applies; its documented history rule is that a changed password must not match the current password, and banned-password screening applies on top.
  • Hybrid accounts: with password writeback enabled, changes and resets made in the cloud are validated against your on-premises AD DS policy — including password history — before they are committed.

Where You Will Encounter the Error#

The same rejection can reach you through very different doors:

  • Windows sign-in security screen (Ctrl+Alt+Del → Change a password) or the Settings app, typically with the generic "does not meet the password policy requirements" wording.
  • Command-line tools, for example net user <username> * on a local account, which reports NetAPI codes such as 2244.
  • Active Directory Users and Computers or any admin reset tool, where the dialog usually cites the length/complexity/history requirements rather than code 617.
  • PowerShell and scripts, such as Set-ADAccountPassword, or applications calling password-change APIs like NetUserChangePassword, which surface raw Win32 or NetAPI codes in logs and error output.
  • Provisioning and self-service tools. Developers should note that LDAP password-set operations only enforce the password history length and password age constraints when the request carries the LDAP_SERVER_POLICY_HINTS_OID control with the enforcement flag set; without it, those two constraints are skipped for that operation. Automation should always send the control (or use the SAMR password-set path) so policy is applied consistently.
  • SQL Server logins with CHECK_POLICY = ON, which applies the Windows password policy to the login. Enabling CHECK_POLICY seeds the password history with the current password hash; disabling it clears the history.

Fixes for End Users#

If you are simply trying to change your own password, no administrative action is needed in most cases:

  1. Pick a genuinely new password. The error means the candidate is already in the history list. A three- or four-word passphrase with a number and symbol is usually easier to remember than an old password with a digit swapped at the end — and incremental variants like Password01, Password02 are exactly the pattern attackers guess first.
  2. Confirm you typed your current password correctly. If the current password is wrong, you get a different error (1323, ERROR_WRONG_PASSWORD), which can look confusingly similar in some dialogs.
  3. If the change is refused as "too recent", wait. The account's Minimum password age has not elapsed yet. Try again after the required interval (often one day).
  4. Use a password manager. It can generate a strong, unique, policy-compliant password and remember it for you, so "must not be reused" never collides with "must be memorable."
  5. Still stuck? Ask an administrator to reset the account, then set a fresh password at the next sign-in if prompted.

Fixes for Administrators on a Standalone PC#

On a PC that is not domain-joined, the local policy decides how many passwords are remembered.

Check the current values first:

net accounts

Run without parameters, this displays the account policy values currently in effect (domain settings take precedence automatically on domain-joined machines).

Inspect and edit the policy with the Local Group Policy Editor (gpedit.msc, on Windows editions that include it):

  1. Press Win + R, run gpedit.msc.
  2. Go to Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy.
  3. Open Enforce password history and note the number of remembered passwords.

Or change it from an elevated command prompt:

rem Require 24 unique passwords before reuse (max allowed is 24)
net accounts /uniquepw:24
 
rem Minimum days a password must be kept before it can change
net accounts /minpwage:1

If gpedit.msc is not available on your Windows edition, the net accounts commands above give you the same control. Reducing the history count (or setting it to 0) is technically a "fix" for one frustrated user, but it disables reuse protection for every local account on the machine — see Best Practices before doing that.

Fixes for Domains: Find the Policy Actually in Effect#

In a domain, the value a user is hitting may come from the Default Domain Policy or from a fine-grained password policy applied to that user or one of their groups. Changing the wrong one will not help.

1. Confirm which policy applies to the user#

# Domain-wide default policy
Get-ADDefaultDomainPasswordPolicy -Current LoggedOnUser
 
# Resultant fine-grained policy (PSO) for a specific user, if any
Get-ADUserResultantPasswordPolicy -Identity jsmith

Get-ADUserResultantPasswordPolicy returns the resultant Password Settings Object (RSoP) recorded in the msDS-ResultantPSO attribute. If several PSOs apply, the one linked directly to the user wins; otherwise the PSO of the group with the lowest msDS-PasswordSettingsPrecedence value applies (lowest number = highest precedence). If no PSO applies, the domain default governs.

You can also inspect this graphically: in Active Directory Administrative Center (dsac.exe), open the user and choose View Resultant Password Settings. PSOs are managed under System → Password Settings Container, and creating them requires Domain Admins membership (or delegated rights) plus RSAT tooling.

2. Verify what Group Policy delivers#

An administrator Command Prompt can generate an RSoP HTML report:

gpresult /h %USERPROFILE%\Desktop\report.html

Open the report and review the account policy settings under the Password Policy node to see what actually reached the machine.

3. Adjust the enforcement that is in effect#

To change the domain default (here: remember the last 24 passwords):

Set-ADDefaultDomainPasswordPolicy -Identity contoso.com -PasswordHistoryCount 24

If a PSO is the culprit, edit that PSO instead — for example with Set-ADFineGrainedPasswordPolicy, or through Active Directory Administrative Center — so you do not loosen the policy for the whole domain to help one user. Keep Minimum password age at 1 day or more so users cannot grind through the history.

4. Getting a user unstuck without weakening policy#

The cleanest remedy is an administrative password reset (for example through ADUC or Set-ADAccountPassword) to a new, never-used value, with User must change password at next logon selected so the user chooses their own secret at the next sign-in. Microsoft's guidance notes that when you set a password and want the user to replace it, that checkbox is what allows the change regardless of the minimum password age.

Hybrid and Cloud Accounts: Entra ID and Password Writeback#

In hybrid environments the answer to "which policy said no?" depends on where the password was changed:

  • Microsoft Entra ID password policy applies to cloud-created accounts. Its documented rules include a minimum of 8 characters, a maximum of 256, three of four character categories (not enforced for Education tenants), screening against the global and organizational banned-password lists, and the requirement that a changed password not be identical to the current one. Apart from banned-password lists and lockout settings, these rules are not configurable.
  • Synchronized accounts are governed by your on-premises policy unless you opt into cloud policy handling for them. If password writeback is enabled, a cloud-side change or reset is validated against the on-premises AD DS policy — explicitly including history, complexity, age, and password filters — before it is written to the directory, and the user is told immediately when the new password fails that check.
  • Takeaway: if a user changes a password in Entra (SSPR, My Apps, or an admin reset in the Entra admin center) and is rejected for reusing an old password, the on-premises history is being enforced through writeback. The fix is the same: pick a password not present in the on-premises history.

Best Practices for Password History Policy#

  • Set Enforce password history to 24, the maximum Microsoft recommends, and keep Minimum password age at 1 day so the history cannot be fast-forwarded. Keep a sensible Maximum password age (Microsoft's guidance for this setting discusses expiring passwords in the 60–90 day range) or use an alternative such as breach-monitoring and banned-password screening if your organization has moved away from forced expiry.
  • Do not set a large history while Minimum password age is 0. That combination looks strict but allows unlimited rapid changes to recycle a password.
  • Expect incremental passwords and counter them. A large history encourages patterns like Spring2026!, Spring2027!. Banned-password lists (such as Microsoft Entra Password Protection) and user education blunt this effect.
  • Match policy to risk. Fine-grained password policies let you apply stricter settings to privileged accounts and lighter ones elsewhere — but never zero history for convenience.
  • Automate with policy awareness. Custom provisioning tools and password portals must enforce the history check server-side (via SAMR or the LDAP policy-hints control), not trust the client.
  • For SQL Server logins, keep CHECK_POLICY = ON so the Windows policy — including history — applies to SQL logins too.
  • Give users an out. A self-service reset path that enforces policy consistently prevents the "just reset it for me again" loop at the help desk.

Common Mistakes and Myths#

  • Deleting entries from Credential Manager. Cached credentials in Credential Manager are stored logon secrets for network resources and applications. Password history lives with the account (in the local SAM or in AD DS), so clearing stored credentials cannot make an old password acceptable. This is a common troubleshooting suggestion that cannot resolve a 617.
  • Lowering the history count to unblock one person. That relaxes reuse protection for every account the policy covers. Reset the user's password instead.
  • Cycling through passwords quickly. With Minimum password age configured (the baseline default), back-to-back changes are refused as "too recent," and rapid cycling is exactly the behavior the policy pair is designed to stop.
  • Assuming a PC-side fix will help a domain account. On a domain-joined machine, the domain policy (or PSO) overrides local settings; editing the local Group Policy Editor entry changes nothing for domain users.
  • Treating it as a Windows bug or a BSoD. The rejection is a security control behaving as designed; the only "bug" is reusing a password the account still remembers.
  • Unverified cleanup steps. Rebuilding profiles, reinstalling Windows, or scanning for malware will not change a policy verdict. Check the policy that is actually in effect first.

Frequently Asked Questions#

Is ERROR_PWD_HISTORY_CONFLICT a virus or a sign of corruption? No. It is a standard Windows error code meaning the proposed password matches one retained in the account's password history.

Can I bypass the check? Only by changing the policy that creates it (Enforce password history, or the applicable fine-grained policy), which weakens security for everyone it covers. The intended path is to choose a password that has not been used before.

Why do I sometimes see "The password does not meet the password policy requirements" instead of error 617? User interfaces usually show a generic policy message; the specific code (617, 1325, or 2244/2245) appears in API results, logs, and command output. Both mean the same thing for a reuse attempt.

How many old passwords does Windows remember? Whatever the Enforce password history setting dictates — up to 24. In a domain, the Default Domain Policy defaults to 24; check the effective value for your account.

Does Microsoft Entra ID enforce password history? For cloud-created accounts its documented change rule is that the new password must not equal the current one, with banned-password screening on top. For synchronized accounts, password writeback enforces your on-premises history in the cloud.

I set an account's password as an admin and the user still cannot reuse their old one. Correct behavior — the old password remains in the history. Direct the user to choose something new.

Conclusion#

ERROR_PWD_HISTORY_CONFLICT (617) means the Windows password policy remembered the password you just tried to set. The user-side fix is simple: choose a genuinely new, strong password and let a password manager keep track of it. The administrator-side task is diagnostic: confirm which policy is in effect — local policy, Default Domain Policy, a fine-grained PSO, or the on-premises policy applied through Entra password writeback — and fix that policy deliberately rather than disabling history wholesale. Done right, with a history of 24 and a minimum password age of one day, this error becomes rare, and when it does appear it is a sign that your defenses against password reuse are working.

References#