/build/static/layout/Breadcrumb_cap_w.png

auto login via registry

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

Answers (2)

Posted by: RandomITPro 12 years ago
4th Degree Black Belt
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
Posted by: mike.henderson 12 years ago
Orange Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ