Excuse me, my CE6 R2 image is Ram-Based, and includes RDP. I set the
registry:

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]

"DisablePasswordSaving"=dword:0[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services]
"DisablePasswordSaving"=dword:0

I check the "Save my password" check box when connecting to RDP
server. the connection can remember the password and auto-logon next time
without reboot.
But the RDP session password couldn't be restored after reboot, and I
have to retype the password again. By the way, I am sure that I saved the
registry before reboot in my own way.
The MSDN says that "This build variable, WBT_USEAUTOLOGON, was
disabled by default to reduce security risk." So I tried set the
WBT_USEAUTOLOGON, and then build and sysgen the image, but still could not
restore the password after reboot.

Could you give me some advice? Thank you very much.

Re: CE6 R2: How to restore RDP session password? by Michel

Michel
Wed May 07 04:46:03 PDT 2008

So you are sure you have support for a persistent RAM based registry? In
other words: you implemented the functions to save and read registry
from some persistent medium (like a hard disk) and pointed
pReadRegistryFromOEM & pWriteRegistryToOEM to those functions?

If you did and you want to save passwords you need to set the
"MasterKeysInRegistry" flag, see
http://msdn.microsoft.com/en-us/library/ms885505.aspx

Why not use hive based registry? It's faster, more efficient and easier
to use.


Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

zhizi wrote:
> Excuse me, my CE6 R2 image is Ram-Based, and includes RDP. I set the
> registry:
>
> [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]
>
> "DisablePasswordSaving"=dword:0[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services]
> "DisablePasswordSaving"=dword:0
>
> I check the "Save my password" check box when connecting to RDP
> server. the connection can remember the password and auto-logon next time
> without reboot.
> But the RDP session password couldn't be restored after reboot, and I
> have to retype the password again. By the way, I am sure that I saved the
> registry before reboot in my own way.
> The MSDN says that "This build variable, WBT_USEAUTOLOGON, was
> disabled by default to reduce security risk." So I tried set the
> WBT_USEAUTOLOGON, and then build and sysgen the image, but still could not
> restore the password after reboot.
>
> Could you give me some advice? Thank you very much.

Re: CE6 R2: How to restore RDP session password? by zhizi

zhizi
Wed May 07 22:52:00 PDT 2008

Hi, Michel,

Thanks for your help, but it still could not restore the RDP password.
I added the following register settings:

[HKEY_LOCAL_MACHINE\init\BootVars]
"MasterKeyFileDir"="\\Hard Disk\\"

[HKEY_LOCAL_MACHINE\init\BootVars]
"MasterKeysInRegistry"=dword:1

I have not successfully run hive based registry at present, and I am
trying hard.


"Michel Verhagen (eMVP)" wrote:

> So you are sure you have support for a persistent RAM based registry? In
> other words: you implemented the functions to save and read registry
> from some persistent medium (like a hard disk) and pointed
> pReadRegistryFromOEM & pWriteRegistryToOEM to those functions?
>
> If you did and you want to save passwords you need to set the
> "MasterKeysInRegistry" flag, see
> http://msdn.microsoft.com/en-us/library/ms885505.aspx
>
> Why not use hive based registry? It's faster, more efficient and easier
> to use.
>
>
> Good luck,
>
> Michel Verhagen, eMVP
> Check out my blog: http://GuruCE.com/blog
>
> GuruCE Ltd.
> Microsoft Embedded Partner
> http://GuruCE.com
> Consultancy, training and development services.
>
> zhizi wrote:
> > Excuse me, my CE6 R2 image is Ram-Based, and includes RDP. I set the
> > registry:
> >
> > [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]
> >
> > "DisablePasswordSaving"=dword:0[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services]
> > "DisablePasswordSaving"=dword:0
> >
> > I check the "Save my password" check box when connecting to RDP
> > server. the connection can remember the password and auto-logon next time
> > without reboot.
> > But the RDP session password couldn't be restored after reboot, and I
> > have to retype the password again. By the way, I am sure that I saved the
> > registry before reboot in my own way.
> > The MSDN says that "This build variable, WBT_USEAUTOLOGON, was
> > disabled by default to reduce security risk." So I tried set the
> > WBT_USEAUTOLOGON, and then build and sysgen the image, but still could not
> > restore the password after reboot.
> >
> > Could you give me some advice? Thank you very much.
>

Re: CE6 R2: How to restore RDP session password? by Michel

Michel
Wed May 07 23:57:24 PDT 2008

If you change the background image of the desktop (right click desktop,
click properties) on the CE device, and save the registry, then reboot,
is the background image still the same as before the boot?

In other words: does persistent registry work? Without it neither will
saving passwords. Also don't specify both MasterKeyFileDir and
MasterKeysInRegistry. It's either or.

My advice to you is: Get hive based registry going first, before you try
to solve this issue. If you have any problems getting hive registry
going just post a detailed problem description and what you tried and
did on this newsgroup and I'm sure me or somebody else will help you
getting it going.

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

zhizi wrote:
> Hi, Michel,
>
> Thanks for your help, but it still could not restore the RDP password.
> I added the following register settings:
>
> [HKEY_LOCAL_MACHINE\init\BootVars]
> "MasterKeyFileDir"="\\Hard Disk\\"
>
> [HKEY_LOCAL_MACHINE\init\BootVars]
> "MasterKeysInRegistry"=dword:1
>
> I have not successfully run hive based registry at present, and I am
> trying hard.
>
>
> "Michel Verhagen (eMVP)" wrote:
>
>> So you are sure you have support for a persistent RAM based registry? In
>> other words: you implemented the functions to save and read registry
>> from some persistent medium (like a hard disk) and pointed
>> pReadRegistryFromOEM & pWriteRegistryToOEM to those functions?
>>
>> If you did and you want to save passwords you need to set the
>> "MasterKeysInRegistry" flag, see
>> http://msdn.microsoft.com/en-us/library/ms885505.aspx
>>
>> Why not use hive based registry? It's faster, more efficient and easier
>> to use.
>>
>>
>> Good luck,
>>
>> Michel Verhagen, eMVP
>> Check out my blog: http://GuruCE.com/blog
>>
>> GuruCE Ltd.
>> Microsoft Embedded Partner
>> http://GuruCE.com
>> Consultancy, training and development services.
>>
>> zhizi wrote:
>>> Excuse me, my CE6 R2 image is Ram-Based, and includes RDP. I set the
>>> registry:
>>>
>>> [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]
>>>
>>> "DisablePasswordSaving"=dword:0[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services]
>>> "DisablePasswordSaving"=dword:0
>>>
>>> I check the "Save my password" check box when connecting to RDP
>>> server. the connection can remember the password and auto-logon next time
>>> without reboot.
>>> But the RDP session password couldn't be restored after reboot, and I
>>> have to retype the password again. By the way, I am sure that I saved the
>>> registry before reboot in my own way.
>>> The MSDN says that "This build variable, WBT_USEAUTOLOGON, was
>>> disabled by default to reduce security risk." So I tried set the
>>> WBT_USEAUTOLOGON, and then build and sysgen the image, but still could not
>>> restore the password after reboot.
>>>
>>> Could you give me some advice? Thank you very much.

Re: CE6 R2: How to restore RDP session password? by zhizi

zhizi
Thu May 08 18:17:00 PDT 2008

Michel ,

I can save the background image changes, the persistent registry
works. Because I save only some branches of registry to persistent storage,
and restore them when reboot.
So, I think you are right. I will try to solve hive-based registry
issue and post the detail. Thanks.


"Michel Verhagen (eMVP)" wrote:

> If you change the background image of the desktop (right click desktop,
> click properties) on the CE device, and save the registry, then reboot,
> is the background image still the same as before the boot?
>
> In other words: does persistent registry work? Without it neither will
> saving passwords. Also don't specify both MasterKeyFileDir and
> MasterKeysInRegistry. It's either or.
>
> My advice to you is: Get hive based registry going first, before you try
> to solve this issue. If you have any problems getting hive registry
> going just post a detailed problem description and what you tried and
> did on this newsgroup and I'm sure me or somebody else will help you
> getting it going.
>
> Good luck,
>
> Michel Verhagen, eMVP
> Check out my blog: http://GuruCE.com/blog
>
> GuruCE Ltd.
> Microsoft Embedded Partner
> http://GuruCE.com
> Consultancy, training and development services.
>
> zhizi wrote:
> > Hi, Michel,
> >
> > Thanks for your help, but it still could not restore the RDP password.
> > I added the following register settings:
> >
> > [HKEY_LOCAL_MACHINE\init\BootVars]
> > "MasterKeyFileDir"="\\Hard Disk\\"
> >
> > [HKEY_LOCAL_MACHINE\init\BootVars]
> > "MasterKeysInRegistry"=dword:1
> >
> > I have not successfully run hive based registry at present, and I am
> > trying hard.
> >
> >
> > "Michel Verhagen (eMVP)" wrote:
> >
> >> So you are sure you have support for a persistent RAM based registry? In
> >> other words: you implemented the functions to save and read registry
> >> from some persistent medium (like a hard disk) and pointed
> >> pReadRegistryFromOEM & pWriteRegistryToOEM to those functions?
> >>
> >> If you did and you want to save passwords you need to set the
> >> "MasterKeysInRegistry" flag, see
> >> http://msdn.microsoft.com/en-us/library/ms885505.aspx
> >>
> >> Why not use hive based registry? It's faster, more efficient and easier
> >> to use.
> >>
> >>
> >> Good luck,
> >>
> >> Michel Verhagen, eMVP
> >> Check out my blog: http://GuruCE.com/blog
> >>
> >> GuruCE Ltd.
> >> Microsoft Embedded Partner
> >> http://GuruCE.com
> >> Consultancy, training and development services.
> >>
> >> zhizi wrote:
> >>> Excuse me, my CE6 R2 image is Ram-Based, and includes RDP. I set the
> >>