RDP through a firewall fails with: “The RPC server is unavaliable”

This is just a quick one…

When trying to logon to Windows server 2003 via remote desktop you receive the following message:

The system cannot log you on due to the following error:
The RPC server is unavailable.
Please try again or consult your system administrator.

RCPError

You will also receive the following event in the target server’s application event log:

Event ID: 1219
Logon rejected for Domain\User. Unable to obtain Terminal Server User Configuration. Error: The RPC server is unavailable.

Event ID 1219


There are a number of reasons you might see this message but in my case it was because the server I was connecting to was behind a firewall and in different domain to the one which my account was in.

When you logon via RDP, “Terminal Services” will contact the domain which your account is in to query terminal services information about your account e.g. profile path. It does this using RPC to a domain controller.

In my case the server concerned was in the perimeter network and there was no way I was going open RPC on the firewall to allow it to talk to an internal DC. And since the purpose for RDP to this server was purely for administration I really didn’t care if it couldn’t get my profile info from AD.

Fortunately there is a workaround as described in this Microsoft article, actually the article refers to a different problem, but the workaround is the same.

http://support.microsoft.com/kb/815266

  1. Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
  2. Create a new DWORD called IgnoreRegUserConfigErrors
  3. Give it a value of 1

Done! I might consider creating a group policy preference to implement this across all the servers in the perimeter domain.

, , , , , , , , ,

8 Responses to RDP through a firewall fails with: “The RPC server is unavaliable”

  1. ffd May 28, 2017 at 10:46 pm #

    Thanks .. it is working please try this

  2. ffd May 28, 2017 at 10:45 pm #

    Thanks .. it is working

  3. Ajit December 12, 2014 at 7:47 pm #

    Thank U Very Much..

  4. Pulau Tidung November 15, 2013 at 4:04 am #

    I got this website from my friend who shared with me regarding this site and at the moment this time I am visiting this web
    page and reading very informative articles here.

  5. Sergey November 10, 2011 at 9:11 pm #

    Thk very much

  6. mohamed Ali October 5, 2011 at 10:30 pm #

    thank you very much that solve my problem

  7. gorkem August 3, 2010 at 10:58 pm #

    Thanks for solution!

  8. Jack April 21, 2010 at 5:53 am #

    I had a similar problem and the above registry setting is the only thing that helped.

    Thank you very much for this.

Leave a Reply