Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I bypass the security warning in the RDP Client everytime you launch it from a RDP shortcut?

The message title reads:

"The publisher of this remote connection cannot be identified. Do you want to connect anyway?"

There's a checkbox that reads:

"Don't ask me again for connections to this computer"

If we check that, it writes the following registry key:

[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\LocalDevices]
"MachineIP or Name"=dword:00000004

I'm trying to bypass this warning by writing this registry values before I run the RDP. The problem is that the dword value varies. I found that in one machine (Win7), it was 4, but in another machine (XP), the value was 72 decimal. Does it vary depending on your OS, or is it by the RDP client version?

Other info:

  1. Signing all my RDP files is NOT an option.
  2. Checking the checkbox is NOT an option as we are trying to automate some stuff with a C# tool.

Thank you

share|improve this question
up vote 3 down vote accepted

This is a bitflags value. We usually set this to 0x0000006F

share|improve this answer
That value seems to work with XP and Vista. Is there any documentation somewhere on that key? – Butcher Apr 9 '10 at 18:15
@Butcher were you able to find any documentation? – Michael Steele Nov 26 '12 at 22:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.