CPM/SRS - winRc=2245: 'The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.'

CPM/SRS - winRc=2245: 'The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.'

447
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:06 PM


Symptom


 

When CPM/SRS tries to manage a Windows account, a winRc=2245 error is returned.  Depending on which log is viewed, the error may look like the below:

 

  • .Debug.Log:
    • Changing password for user [<domain>\<username>] on [\\<address>] failed. Error: 2245.
  • .log:
    • Error in changepass to user <domain>\<username> on domain \\<address>(\\<address>).(winRc=2245) The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.
  • pm.log:
    • Error in changepass to user <domain>\<username> on domain \\<address>(\\<address>).(winRc=2245) The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.

 



Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)

 

CPM/SRS

Windows Target

 



Cause


 

This error is generated when the CPM/SRS plugin attempts to perform a change or reconcile action against an account, local or domain-based, but the password that  CPM/SRS attempts to set does not meet the password policy requirements applied to the target device.  The issue can be due to a mismatch with:

 

  • Password History
  • Password Age
  • Password Length
  • Password Complexity

 

winRc stands for Windows Return Code.  Windows Return Codes are generated by Windows systems.  The return code shown in the CPM/SRS logs and PVWA UI is from the target Windows machine and not from CPM/SRS.

winRc=2245 Error Definition:
ERROR_PASSWORD_RESTRICTION 
2245 (0x8C5) 
The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. 

 



Resolution


 

To resolve this issue, ensure that the relevant password policy parameters set on the platform that the account object is assigned to, as well as the master policy exceptions for that platform, match, or are more stringent, than the corresponding password policies applied to the target device.  Refer to the table below for the configurable password policy-related parameters in PVWA and their corresponding password policy settings in Windows:

 

Name of Parameter/Policy in PVWALocation in PVWAName of Comparable Windows PolicyNotes
EnforcePasswordVersionsHistoryEdit the Platform -> Automatic Password Management (APM) -> Password ChangeEnforce password history
Require password change every X daysPolicies -> Policy by Platform -> select relevant platform -> Password Management

Maximum password age

Minimum password age

-Lowest possible value for policy exception is one day.

-Manual password rotations supersede this policy.

PasswordLengthPlatform, APM -> Generate PasswordMinimum password length
MinUpperCase, MinLowerCase, MinDigit, MinSpecialPlatform, APM -> Generate PasswordPassword must meet complexity requirements
PasswordForbiddenCharsPlatform, APM -> Generate PasswordNA-Not generally applicable to Windows password policies.
PasswordEffectiveLengthPlatform, APM -> Generate PasswordNA-Not generally applicable to Windows password policies.
PreventSameCharPerPrevPassPositionPlatform, APM -> Generate PasswordNA-Not generally applicable to Windows password policies.
PreventRepeatingCharactersPlatform, APM -> Generate PasswordNA-Not generally applicable to Windows password policies.

 

 

Resources:
How does CPM Manage Windows Accounts Passwords

Windows System Error Codes
Windows Network Management Error Codes
Windows Routing and Remote Access Error Codes
Windows Sockets Error Codes

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001LaKCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail