CPM/SRS - winRc=2250: 'This network connection does not exist.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=2250 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Failed to cancel connection [\\<address>\ipc$]. Error: 2250
- .log:
- Note: You won't see this log because it was not generated.
- pm.log:
- Note: You won't see a failure entry in the log because there isn't one.
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 typically generated when a network connection cannot be found. Often, it occurs when a network resource either no longer exists, or is no longer available. However, in the context of CPM/SRS, the error almost always occurs in conjunction with another winRc error. It is not likely that a winRc=2250 error will be returned without any other winRc error also being returned. When parsing the .Debug.log file, you should expect to see winRc=2250 first, followed by another winRc error. It is this second error that needs to be troubleshot.
Below are two examples of a winRc=2250 error being generated, followed by a second, 'primary' winRc error:
26/03/2025 09:19:52 [2060] Performing logon. User [<username>], DC: [\\<address>], Domain name: [<domain>]
26/03/2025 09:19:52 [2060] Connecting with user [<domain>\<username>] to [\\<address>\ipc$]
26/03/2025 09:19:54 [2060] Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1907.
26/03/2025 09:19:54 [2060] Releasing connection [\\<address>\ipc$]...
26/03/2025 09:19:54 [2060] Failed to cancel connection [\\<address>\ipc$]. Error: 2250
26/03/2025 09:19:54 [2060] Logon with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1907.
26/03/2025 12:47:02 [21c4] Performing logon. User [<username>], DC: [\\<address>], Domain name: [<domain>]
26/03/2025 12:47:02 [21c4] Connecting with user [<domain>\<username>] to [\\<address>\ipc$]
26/03/2025 12:47:04 [21c4] Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1385.
26/03/2025 12:47:04 [21c4] Releasing connection [\\<address>\ipc$]...
26/03/2025 12:47:04 [21c4] Failed to cancel connection [\\<address>\ipc$]. Error: 2250
26/03/2025 12:47:04 [21c4] Logon with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1385.
The first log snippet is from a debug log where the actual error is winRc=1907 (The user's password must be changed before signing in). The second log snippet is from a debug log where the actual error is winRc=1385 (Logon failure: the user has not been granted the requested logon type at this computer). In each situation, the generation of the winRc=2250 is not the true error. The true errors are winRc=1907 and winRc=1385, respectively.
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=2250 Error Definition:
ERROR_NOT_CONNECTED
2250 (0x8CA)
This network connection does not exist.
Resolution
As noted above, a winRc=2250 error can be treated as a 'secondary' error. It is the 'other' winRc error returned that should be troubleshot as the 'primary' error.
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