CPM - Windows Local Account with WMI error "The system cannot find the file specified. Error code: 2"

CPM - Windows Local Account with WMI error "The system cannot find the file specified. Error code: 2"

121
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 12:59 PM


Symptom


When attempting to change a Windows Local Account password through WMI, the error "The system cannot find the file specified. Error code: 2" is received.

In the debug log on the CPM, the following is also seen:
 
Retrieved return code from registry
Return code: 2


Environment


11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) CPM - Microsoft Windows Local with WMI plugin

Cause


The error is due to the password policy set by Windows versus what is configured on the account's associated platform for "Generate Password."  The current platform configuration for this account is setting a password which doesn't meet the Windows password policy requirements. When the CPM then attempts to change the password, it will return the error message.

Resolution


Update the platform's password policy to meet the requirements of the Windows password policy.  This will then allow the CPM to successfully change the password.

The CPM password policy parameters are found here – PVWA > Administration > Platform Management > Edit the relevant platform > Automatic Password Management > Generate Password.

After updating the relevant parameters, attempt another password change.


Additional Information


Details

SYMPTOM:
When attempting to change a Windows Local Account password through WMI the error "The system cannot find the file specified. Error code: 2" is received.

Within the debug.log on the CPM Server, the following is also seen:
===
Retrieved return code from registry
Return code: 2
===

PROBLEM:

The error is being received due to the password policy set by Windows, and what is configured within the Accounts associated platform for the parameters within "Generate Password". The current platform configuration for this account is setting a password which doesn't meet the Windows password policy requirements, the CPM Server attempts to change the password and then it will return this error message.

SOLUTION:

Update the platforms password policy to meet the requirements of the Windows password policy, this will then allow CPM to successfully change the password.


The CPM password policy parameters are found here – PVWA > Administration > Administration > Select the relevant platform and click Edit > Automatic Password Management > Generate Password.


After updating the relevant parameters attempt another password change.





Actions
  • Print
  • Copy Link

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