How to Fix “The RPC Server is Unavailable” Error?

Every time the user tries to enroll a certificate, an RPC Server Unavailable error appears. In this instance, the domain controller or another client neglects to sign up for certificates from the CA.
0x800706ba (WIN32: 1722 RPC_S_SERVER_UNAVAILABLE)
When a user requests a certificate from ADCS Certification Authority, the requested certificate is not supported by this CA or request cannot be submitted to the certification authority due to a rpc error:
Win32 error 1722: “The RPC server is unavailable”
Now what does “The RPC server is unavailable” error mean? It typically indicates a communication breakdown between two devices or systems. This error occurs when a Windows device has trouble communicating with another remote device.
This RPC Server unavailable error occurs only due to two reasons:
This solution has been divided into five parts, covering the details of what we need to do:
Checking Network Connection
The client and the CA must be able to communicate via the network.
Fixing the RPC Interface
Coming to CA, the first hurdle is that the RPC interface must be cleared, and the connection should be established. To do this, the account should have “Access this computer from the network” permissions granted.
To do this
Open Local Security Policy -> Expand Local policies -> Double click User rights assignment.
By default, the following accounts should be enrolled here. Everyone, Administrators, Backup operators, Users
Note: There is also an option to “Deny access to this computer from Network”, which should strictly be avoided.
DCOM Permissions
After RPC is properly configured, DCOM will handle the authentication. To open this configuration,
Browse to My computers and right-click. Enter properties.
Browse to COM Security under “EDIT LIMITS”.
Check whether these permissions are there in the security group:
Launch and activation permissions: “Local Launch” and “Remote Launch.”
Note: To be aware that these settings can be controlled via Group Policy.
DCOM Config (CertSrv) Interface
Open DCOM Config and select CertSrv Request. Right click and open properties.
Go to security tab and click on edit.
Set the following permissions:
For Access Permissions: Check “Local Access” and “Remote Access” for Everyone
CA Permissions
It is always a checklist to see that the proper permissions on the CA are given. Otherwise, it would return CERTSRV_E_ENROLL_DENIED error.