RE: save password in .rdp file



Hi Mike,
By default, in Windows CE 5.0 RDP, users are prevented from saving a
password value in the system. To override this default behavior, you can
enable Autologon by setting the WBT_USERAUTOLOGON build variable before
building your image.

If you enable Autologon, you can encrypt the password value in your source
code, for example by using CryptProtectData function in wincrypt.h.

Note that you must include Crytography Services (SYSGEN_CRYPTO) in your OS
design (and perhaps also SYSGEN_CRYPTO_DSSDH).

WINCE500\public\rdp\oak\uit\cetsc is the folder where the source code for
the Remote Desktop client (CETSC) dialog box is located.

Also note that, in CE 6.0 R2, a "Save my Password" check box is included by
default in the Remote Desktop client (CETSC) (see
http://msdn.microsoft.com/en-us/library/aa912575.aspx ).


"Mike" wrote:

Hey guys,

I'm trying to have a autologon to a remote machine with Remote Desktop on
Windows CE 5.00. When I open Remote desktop and fill in the necessary
information (server:port, username, password, domain...) and click on save
as, Remote desktop saves the information in an .rdp file, all the information
except for the password. In result everytime I double click on the .rdp file
to connect to the remote machine, I am asked to type in the password, I want
to avoid having to do this by saving the password in the .rdp file.

I read on this link: http://msdn.microsoft.com/en-us/library/ms861803.aspx
that Windows CE can read the password from the .rdp file but does not have
the ACLs to securely write passwords.

I also read on this link
http://msdn.microsoft.com/en-us/library/ms861732.aspx, that "By making the
appropriate changes in "%_WINCEROOT%\Public\Rdp\Oak\Uit\cetsc", an OS
developer can change this default behavior so that the password is saved to
the device" I'm wondering what sort of changes are we talking about here, I
can't even find the directory mentionned above on my WinCE.

So my question would be, is there a way for me to encrypt the password and
write it manually in my .rdp file so that when I double click on it, remote
desktop will read the password from the file and not ask me to type it in
again.

Any help is greatly appreciated.

Thanks in advance.

Mike
.