Trying to move or XP unattended install moved over to the K2000. Have just about everything ready except my auto login.

It will not run from RunOnce or RunOnceEx nor from a batch file called from RunOnce or RunOnceEx. It does look like the settings are there, but the computer does not auto login to the domain.

The following will work when I manually run it and reboot.

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d domain\installer /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d xxxxxxxx /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f


What am I doing wrong??

Does my DefaultDomainName need to be domain.local?I think I have tried that and it did not make a difference.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
0
I assume you are trying to autologin using a domain account and not a local account. If this is the case, Username needs to just be the "username" not "domain\username" and domain should be your domain. If your trying to use a local account I think setting the domain to %computername% will work.

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d installer /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d xxxxxxxx /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f

OR

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d %computername% /f

I use a batch file to autologin into my syspreped images a second time. Then use an autoit script to restart the machine after 2 mins. Then another batch file to break the autologin, and set the domain.

Goodluck
-TM
Answered 02/06/2012 by: Tentacle Master
Fourth Degree Black Belt

Please log in to comment
0
I want to login to the domain. I have done this several ways and still can not get it to work. I auto admin login via the unattend xp install, join the domain and set the reg keys to autologon, reboot, but no logon.
Answered 02/07/2012 by: mike.henderson
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity