Tuesday, July 24, 2007

Remote Desktop Connection 6 - Remember/Save Domain Name

After months of dealing with an irritating behavior with RDP 6 not saving my domain I think I've got it to work correctly now. To give a brief background I have a laptop at home that is on a workgroup however I VPN into a client where I using RDP client to connection to Terminal Services running on different servers. The client has a couple different domains but the *.rdp files were not saving my domain settings. It would default to the MachineName(or IP)\MyCorporateUserAccount instead of the Domain name I had entered.

Here is an example file:

screen mode id:i:2
desktopwidth:i:1280
desktopheight:i:1024
session bpp:i:16
winposstr:s:0,1,286,0,1280,600
full address:s:192.168.1.###
compression:i:1
keyboardhook:i:1
audiomode:i:0
redirectdrives:i:0
redirectprinters:i:0
redirectcomports:i:0
redirectsmartcards:i:0
displayconnectionbar:i:1
autoreconnection enabled:i:0
username:s:MyCorporateUserAccount
alternate shell:s:
shell working directory:s:
disable wallpaper:i:1
disable full window drag:i:1
disable menu anims:i:1
disable themes:i:1
disable cursor setting:i:0
bitmapcachepersistenable:i:1
redirectclipboard:i:1
redirectposdevices:i:0
drivestoredirect:s:
authentication level:i:0
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:0
allow desktop composition:i:0
allow font smoothing:i:0
gatewayhostname:s:
gatewayusagemethod:i:0
gatewaycredentialssource:i:4
gatewayprofileusagemethod:i:0


Tried adding the older domain:s:MyDomainName item to the file as well as changing the username:s: item to MyDomainName\MyCorporateUserAccount and just for grins MyDomainName\MyCorporateUserAccount. All of them didn't seem to work then I stumbled across a MSDN blog entry related to Vista which gave me an idea.

How about modifying the username item to look like the following, username:s:MyCorporateUserAccount@MyDomainName. Now we're in business without having to always changing the domain from the machine name to the correct AD domain.

Just in case you haven't installed Remote Desktop Connection (Terminal Services Client 6.0) for Windows XP (KB925876), enjoy.

No comments: