Automatic Logon problem

J

jj3000

I added Automatic Logon along with administrator account.

I have setup the administrator account password, and in the Automatic
Logon I have set the password to match it, and set the
cmiAutoLogonUser to "Administrator", set Domain to "workgroup".

However, it still fails to logon after FBA. (I am NOT using system
cloning tools). I checked the registry and the DefaultDomainName is
there, DefaultPassword is there. But DefaultUserName is blank. It
seems the cmiAutoLogonUser field in the Auto Logon component went to
"AltDefaultUserName" instead...

Ok so maybe I need to put in "Administrator" under the windows logon
default user name setting, but that doesn't seem to make sense because
the Auto logon should override it (well, it did for the password and
domain field)?


P.S. Using XPe SP2

Thanks
 
K

KM

jj3000,

Actually, the "Automatic Logon" component puts the DefaultUserName and password in the software registry during the build.
Only DefaultDomain gets overwritten (migrated) after or during the FBA.

Can you load the software hive of the pre-FBA image and verify that the DefaultUserName is set there?
I am wondering if it gets cleaned up during build (shouldn't be the case since Winlogon gets built before Autologon) or FBA (on
SP2).
 
B

Ben Harris

jj3000 said:
I added Automatic Logon along with administrator account.

I have setup the administrator account password, and in the Automatic
Logon I have set the password to match it, and set the
cmiAutoLogonUser to "Administrator", set Domain to "workgroup".

However, it still fails to logon after FBA. (I am NOT using system
cloning tools). I checked the registry and the DefaultDomainName is
there, DefaultPassword is there. But DefaultUserName is blank. It
seems the cmiAutoLogonUser field in the Auto Logon component went to
"AltDefaultUserName" instead...

Ok so maybe I need to put in "Administrator" under the windows logon
default user name setting, but that doesn't seem to make sense because
the Auto logon should override it (well, it did for the password and
domain field)?


P.S. Using XPe SP2

Thanks

I had exactly the same problem with a SP1 image that I upgraded to SP2. As
you've suggested, I solved it by putting "Administrator" in the Windows
Logon, Default username field. This wasn't needed in my original SP1 image
though, so not sure why it should be for SP2.

Ben Harris
Design Engineer

Arcom,
Clifton Road,
Cambridge CB1 7EA
United Kingdom

http://www.arcom.com
 
J

jj3000

I didn't get to verify that yet. How do I view the software hive in
the pre-FBA image?

Ones I put the default user name in the WINLOGON to administrator, the
automatic logon works.

So in summary it seems that:

WINLOGON sets the registry for user name
Auto Logon sets the registry for PW and Domain. But it seem to have
trouble setting the user name. So that doesn't seem right to me..
 
K

KM

jj3000,
I didn't get to verify that yet. How do I view the software hive in the pre-FBA image?

Open regedit.exe, click on HKLM node.
In menu File select "load Hive" option.
Browse to your image build directory and open \windows\system32\config\software file there.
Set any [Test] name for the hive when requested.
Ones I put the default user name in the WINLOGON to administrator, the automatic logon works.
So in summary it seems that:

WINLOGON sets the registry for user name
Auto Logon sets the registry for PW and Domain. But it seem to have

Autologon script does set the DefaultUserName too.
We can expect that Winlogon overwrites this value but I wouldn't understand that then.
Winlogon script does not have to set (change) the DefaultUserName if the corresponding UI field is empty.
trouble setting the user name. So that doesn't seem right to me..

That does not seem right to me either :)
 
K

KM

Just FYI...

XPe SP2 Rel.Notes says : "Allowing auto-resolve to add Windows Logon to a runtime causes the automatic logon default username to be
overwritten."

KM
 
G

Guest

Well, I had a similar problem and to my humble opinion this is a bug: In the
Automatic Logon component the string for "cmiAutoLogonPassword" is actually
taken from the "cmiAutoLogonDomain" field. So try to set under
"cmiAutoLogonDomain" the password for the "cmiAutoLogonUser" and try again.
Please let me know the result.
 
K

KM

Sorin,
Well, I had a similar problem and to my humble opinion this is a bug: In the
Automatic Logon component the string for "cmiAutoLogonPassword" is actually
taken from the "cmiAutoLogonDomain" field.

I am wondering what in the world made you think so?
I have explored the Autologon component script and I saw that cmiAutoLogonPassword property gets read and sets the
[HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon"],"DefaultPassword" reg value.

The cmiAutoLogonDomain, in its turn, independenty sets the "DefaultDomainName" value under
[HKML\HKEY_LOCAL_MACHINE\System\FBA\RegMigrate\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] key. This key will be
then "migrated" by FBA to the corresponing value under regalar Winlogon key.
 
G

Guest

Hi KM,
"mea culpa"!
Under Automatic Logon I had the same string for cmiAutoLogonDomain (all
upper case) and cmiAutoLogonPassword (all lower case). Under Administrator
Account the cmiUserPassword was entered in upper case by some mistake...
So when I tried to logon after the FBA run, the password didn't work as I
expected.

Regards,

Sorin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top