“RPC server unavailable” error message when login to server from remote desktop or terminal server

Problem: After login to the server using remote desktop you receive an error message saying that the RPC server is unavailable.

Solution: Make sure that Net Logon service and the kerberos service are running if not start them and restart server.