Remote Desktop Connection: quick way to customize RDP file

Scenario
While working on my latest POC- where in I had to open RDP connection on mobile platform, I came across a stage where my lab environment was not reachable from outside network. The issue was FQDN to IP address resolution failure. To add more, my lab is in isolated network and using public IP is restricted. So to mitigate this issue I found a route to overcome this scenario – create custom RDP files that can point to the IP address of my environment instead of the hostname. After looking around in the internet on how to customize RDP files, I was able to achieve what I needed. Reference: Article ID: 941641 
 
Following were my objectives to automate the RDP connection:
Change the server hostname (FQDN) to IP address
Save credentials (Username/password) so to avoid being prompted
Disable server certificate error warning “The identity of the remote computer cannot be verified. Do you want to connect anyway?”
Workaround:
1) To achieve this, go to run > type mstsc.exe and hit enter
2) Once the dialogue window is open, under General tab, fill in the Computer, username fields.
3) Check mark Allow me to save credentials
4) Under Advanced tab > server authentication, from the If server authentication fails drop down, select Connect and don’t warn me
5) Return to the General tab, click on Save As… button
6) Now open the Default.rdp file using notepad
7) Verify and enter the values for the following options:
full address:s:<FQDN or IP address> 
username:s:<domain\username>
password 51:b:<copy-paste the encrypt value using a password encrypt/decrypt tool>
Note: You may use various password encryption tool available in the internet. But use it at your own risk.
Add the below line or Change the authentication level to 0 so that the line becomes the following:

authentication level:i:0 (If set to 0 RDP does not check for server authentication)
Sample of an RDP file looks something like this:
redirectclipboard:i:1
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
session bpp:i:32
prompt for credentials on client:i:1
span monitors:i:1
use multimon:i:1
remoteapplicationmode:i:1
server port:i:3389
allow font smoothing:i:1
promptcredentialonce:i:0
videoplaybackmode:i:1
audiocapturemode:i:1
gatewayusagemethod:i:0
gatewayprofileusagemethod:i:1
gatewaycredentialssource:i:0
full address:s:10.00.00.00
alternate shell:s:||POWERPNT
remoteapplicationprogram:s:||POWERPNT
remoteapplicationname:s:Microsoft PowerPoint 2010
remoteapplicationcmdline:s:
workspace id:s:domain.example.com
use redirection server name:i:1
loadbalanceinfo:s:tsv://MS Terminal Services Plugin.1.QuickSessionCollection
username:s:DOMAIN\user1
password 51:b: EWEWEW089890898f9d7f9d7f98d7f9898f
authentication level:i:0
Advertisements

About cloudray

Predominantly based around Virtualization, but will include other technology related information and anything else I find interesting and feel the need to share with you. I also use this Blog as both a place to store useful information that I think that will come in handy to me at some point in the future, and also a place to help aid my learning. I find a great way to learn about something is to research about it and then write it up in my own words. I'm Pushpal Ray, from India. As a certified VCP3/4/5 professional, I am currently working as an Independent Consultant. Over 10 years of IT-industry experience, currently focused around the Desktop Virtualization(End-User Computing). I also have extensive experience in Windows Administration, Datacenter Migration, Workload profiling & benchmarking. At my leisure, I enjoy hiking, running, photography, spend hours in my fav coffee shop & spend quality time with my wife. Occasionally, catch up with few friends for a drink!
This entry was posted in Enterprise Virtualization, Microsoft Hyper-V, Windows Server 2012 and tagged , . Bookmark the permalink.

One Response to Remote Desktop Connection: quick way to customize RDP file

  1. Pingback: Remote Desktop Web Access (RDWA) : customize RDP file on server-side to use IP address instead of FQDN | cloudray

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s