CPM/SRS - winRc=1789: 'The trust relationship between this workstation and the primary domain failed.'
278
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1789 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Failed to logon to [\\<address>\ipc$] with user [<domain>\<username>]. Error: 1789.
- .log:
- Error in logon to user <domain>\<username> on domain <address>(\\<address>).(winRc=1789) The trust relationship between this workstation and the primary domain failed.
- pm.log:
- Error in logon to user <domain>\<username> on domain <address>(\\<address>).(winRc=1789) The trust relationship between this workstation and the primary domain failed.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
The trust relationship between the target device and the primary domain failed. Note, this only affects domain-joined devices. It cannot affect non-domain-joined devices.
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=1789 Error Definition:
ERROR_TRUSTED_RELATIONSHIP_FAILURE
1789 (0x6FD)
The trust relationship between this workstation and the primary domain failed.
Resolution
To resolve this issue, remove the device from the domain, and then reconnect it. To do so, follow the steps below:
- Use a local administrator account to log on to the computer.
- Click Start, type in sysdm.cpl, and click Enter.
- On the Computer Name tab, click Change.
- Under the 'Member of' heading, select Workgroup, type a workgroup name, and then click OK.
- When you are prompted to restart the computer, click OK.
- Log back in with the local administrator account and open System Properties via the same process as in step 2 above.
- On the Computer Name tab, click Change again.
- Under the Member of heading, select Domain, and then type the domain name.
- Click OK, and then type the credentials of the user who has permissions in the domain.
- When you are prompted to restart the computer, select OK.
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